Use site.Language.LanguageCode.
This commit is contained in:
parent
97e11ab6f1
commit
ed5a99e9e5
1 changed files with 6 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<link>{{ .Permalink }}</link>
|
||||
<description>Micro blog {{ i18n "string_by" }} {{ with site.Params.author.name }}{{ . }}{{ end }}, {{ i18n "string_follow" }} @{{ with $.Param "microusername" }}{{ . }}{{ end }} {{ i18n "string_at" }} https://micro.blog/{{ with $.Param "microusername" }}{{ . }}{{ end }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{ with site.LanguageCode -}}
|
||||
{{ with site.Language.LanguageCode -}}
|
||||
<language>{{ . }}</language>
|
||||
{{ end -}}
|
||||
{{ with site.Params.author.email -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue