add locale param for multilang #155
This commit is contained in:
parent
de92845ab7
commit
fa6d517cad
@ -21,6 +21,7 @@ readMore = false
|
|||||||
readNextPosts = 2
|
readNextPosts = 2
|
||||||
copyCodeButton = true
|
copyCodeButton = true
|
||||||
rssAsSocialIcon = true
|
rssAsSocialIcon = true
|
||||||
|
locale = "en-us"
|
||||||
|
|
||||||
# Graphcomment support
|
# Graphcomment support
|
||||||
graphcommentId = ""
|
graphcommentId = ""
|
||||||
@ -81,6 +82,9 @@ name = "Archiwum"
|
|||||||
url = "/posts/"
|
url = "/posts/"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
|
[[languages.pl.params]]
|
||||||
|
locale = "pl-pl"
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
category = "categories"
|
category = "categories"
|
||||||
tag = "tags"
|
tag = "tags"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{ if eq site.Params.style "dark-without-switcher" }}
|
{{ if eq site.Params.style "dark-without-switcher" }}
|
||||||
{{ $dataTheme = "dark" }}
|
{{ $dataTheme = "dark" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<html lang="{{ .Site.LanguageCode }}" data-theme="{{ $dataTheme }}">
|
<html lang="{{ .Site.Params.locale | default .Site.LanguageCode }}" data-theme="{{ $dataTheme }}">
|
||||||
<head>
|
<head>
|
||||||
{{ block "head" . }}
|
{{ block "head" . }}
|
||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user