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