diff options
author | Matthew Buckett | 2016-01-02 12:42:18 +0000 |
---|---|---|
committer | Matthew Buckett | 2016-01-02 12:42:18 +0000 |
commit | d06d24a0a3a29d44b4610fdb22b368fbe9b5021e (patch) | |
tree | d6167ec77276810cb57aa74c90823771f44f9fd6 /layouts | |
parent | bf6f0a4426a40ac8e9ebd165797b976733aa5812 (diff) | |
download | hyde-d06d24a0a3a29d44b4610fdb22b368fbe9b5021e.tar.lz hyde-d06d24a0a3a29d44b4610fdb22b368fbe9b5021e.tar.zst hyde-d06d24a0a3a29d44b4610fdb22b368fbe9b5021e.zip |
Use language from configuration.
The header should use the language supplied in the configuration rather than hardcoding to english (US).
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c711dd9..23767d6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us"> +<html xmlns="http://www.w3.org/1999/xhtml"{{with .Site.LanguageCode}} xml:lang="{{.}}" lang="{{.}}"{{end}}> <head> <link href="http://gmpg.org/xfn/11" rel="profile"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> |