]> njoseph.me Git - hyde.git/commitdiff
Use language from configuration.
authorMatthew Buckett <matthew.buckett@it.ox.ac.uk>
Sat, 2 Jan 2016 12:42:18 +0000 (12:42 +0000)
committerMatthew Buckett <matthew.buckett@it.ox.ac.uk>
Sat, 2 Jan 2016 12:42:18 +0000 (12:42 +0000)
The header should use the language supplied in the configuration rather than hardcoding to english (US).

layouts/partials/head.html

index c711dd90ba020067368a9df1dedaf949284c8968..23767d6f975a99b0069ae7fd86a87a23d5971605 100644 (file)
@@ -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">