diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-09-19 21:35:24 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-09-19 21:35:24 +0300 |
commit | c306070aeed76cb98d9cc2eb36fd469b624af6eb (patch) | |
tree | 4bdd062d7087795bf84ef8c1c99989aea9c50aef /layouts | |
parent | 856a61fcf194a453d31a6703e19e74e9a68459ab (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.html | 2 |
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" . }} |