Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miguelsimoni/hugo-initio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Nacke <kai@redstar.de>2018-03-07 10:05:13 +0300
committerKai Nacke <kai@redstar.de>2018-03-07 10:05:13 +0300
commit9fbc5289c203c126e0720842fab9d9cb3ee4e5c5 (patch)
tree85d867e3b7177144cfdce171b66dc70c2163dcba /layouts
parent74001530ac8889e5947a559608beae9d8c27c563 (diff)
Regard the languageCode set in the config file.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 67598f6..17cab21 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="en">
+<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">