feat: update lang attribute
This commit is contained in:
parent
b4682116de
commit
3665a521e4
|
@ -5,13 +5,12 @@ disableHugoGeneratorInject = true
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
enableGitInfo = false
|
enableGitInfo = false
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
languageCode = "en-US"
|
|
||||||
paginate = 7
|
paginate = 7
|
||||||
rssLimit = 10
|
rssLimit = 10
|
||||||
|
|
||||||
# Multilingual
|
# Multilingual
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
disableLanguages = ["de", "nl"]
|
# disableLanguages = ["de", "nl"]
|
||||||
# defaultContentLanguageInSubdir = true
|
# defaultContentLanguageInSubdir = true
|
||||||
|
|
||||||
# add redirects/headers
|
# add redirects/headers
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
weight = 10
|
weight = 10
|
||||||
[en.params]
|
[en.params]
|
||||||
languageISO = "EN"
|
languageISO = "EN"
|
||||||
|
languageTag = "en-US"
|
||||||
|
|
||||||
[de]
|
[de]
|
||||||
languageName = "German"
|
languageName = "German"
|
||||||
|
@ -11,6 +12,7 @@
|
||||||
weight = 15
|
weight = 15
|
||||||
[de.params]
|
[de.params]
|
||||||
languageISO = "DE"
|
languageISO = "DE"
|
||||||
|
languageTag = "de-DE"
|
||||||
|
|
||||||
[nl]
|
[nl]
|
||||||
languageName = "Nederlands"
|
languageName = "Nederlands"
|
||||||
|
@ -18,6 +20,7 @@
|
||||||
weight = 20
|
weight = 20
|
||||||
[nl.params]
|
[nl.params]
|
||||||
languageISO = "NL"
|
languageISO = "NL"
|
||||||
|
languageTag = "nl-NL"
|
||||||
titleAddition = "Modern documentatie-thema"
|
titleAddition = "Modern documentatie-thema"
|
||||||
description = "Doks is een Hugo-thema waarmee je moderne documentatie-websites kunt bouwen die veilig, snel en klaar voor SEO zijn — standaard."
|
description = "Doks is een Hugo-thema waarmee je moderne documentatie-websites kunt bouwen die veilig, snel en klaar voor SEO zijn — standaard."
|
||||||
titleHome = "Doks thema"
|
titleHome = "Doks thema"
|
||||||
|
|
|
@ -101,7 +101,7 @@ lastMod = false
|
||||||
breadCrumb = false
|
breadCrumb = false
|
||||||
highLight = true
|
highLight = true
|
||||||
kaTex = false
|
kaTex = false
|
||||||
multilingualMode = false
|
multilingualMode = true
|
||||||
docsVersioning = false
|
docsVersioning = false
|
||||||
fullWidth = false
|
fullWidth = false
|
||||||
navbarSticky = true
|
navbarSticky = true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
<html lang="{{ .Site.Params.languageTag | default "en-US" }}">
|
||||||
{{ partial "head/head.html" . }}
|
{{ partial "head/head.html" . }}
|
||||||
{{ if eq .Kind "home" -}}
|
{{ if eq .Kind "home" -}}
|
||||||
{{ .Scratch.Set "class" "home" -}}
|
{{ .Scratch.Set "class" "home" -}}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
<generator>Hugo -- gohugo.io</generator>{{ with .Site.Params.languageTag | default "en-US" }}
|
||||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Params.copyRight }}
|
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Params.copyRight }}
|
||||||
|
|
Loading…
Reference in New Issue