Browse Source

Use language from configuration.

The header should use the language supplied in the configuration rather than hardcoding to english (US).
Matthew Buckett 9 years ago
parent
commit
d06d24a0a3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/partials/head.html

+ 1
- 1
layouts/partials/head.html View File

@@ -1,5 +1,5 @@
1 1
 <!DOCTYPE html>
2
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
2
+<html xmlns="http://www.w3.org/1999/xhtml"{{with .Site.LanguageCode}} xml:lang="{{.}}" lang="{{.}}"{{end}}>
3 3
 <head>
4 4
   <link href="http://gmpg.org/xfn/11" rel="profile">
5 5
   <meta http-equiv="content-type" content="text/html; charset=utf-8">