summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Buckett <matthew.buckett@it.ox.ac.uk>2016-01-02 12:42:18 +0000
committerMatthew Buckett <matthew.buckett@it.ox.ac.uk>2016-01-02 12:42:18 +0000
commitd06d24a0a3a29d44b4610fdb22b368fbe9b5021e (patch)
treed6167ec77276810cb57aa74c90823771f44f9fd6
parentbf6f0a4426a40ac8e9ebd165797b976733aa5812 (diff)
Use language from configuration.
The header should use the language supplied in the configuration rather than hardcoding to english (US).
-rw-r--r--layouts/partials/head.html2
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">