Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/shaform/hugo-theme-den.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/posts/single.html')
-rw-r--r--layouts/posts/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 6173b7a..ce2e72c 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -10,7 +10,7 @@
{{- i18n "author_by" }}
{{ range $index, $value := .Params.authors -}}
{{- $author := index ($.Site.Data.authors | default dict) $value -}}
- {{- $author_lang := index ($author | default dict) $.Site.LanguageCode | default $author -}}
+ {{- $author_lang := index ($author | default dict) $.Site.Language.Lang | default $author -}}
{{ $author_lang.name.display | default $author.name.display | default $value }}{{ if ne $index $last }}, {{ end -}}
{{ end }} /
{{ end }}