add locale param for multilang #155

This commit is contained in:
Dmitry Kolosov 2022-05-29 18:03:39 +03:00
parent de92845ab7
commit fa6d517cad
2 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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" . }}