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

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2018-09-19 21:35:24 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2018-09-19 21:35:24 +0300
commitc306070aeed76cb98d9cc2eb36fd469b624af6eb (patch)
tree4bdd062d7087795bf84ef8c1c99989aea9c50aef /layouts
parent856a61fcf194a453d31a6703e19e74e9a68459ab (diff)
Fix reading language from config and include default language code
.Site.Language is actually an object used for multilingual websites. The correct one to use is .Site.LanguageCode. See https://gohugo.io/variables/site/#site-variables-list Also included a default language code, and fixed an HTML syntax error.
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 ea0bd00..21e7320 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="{{.Site.Language}}"></html>
+<html lang="{{ .Site.LanguageCode | default "en" }}">
{{ partial "head.html" . }}