[PATCH] tpl/tplimpl: Use .Language.LanguageCode in built-in templates

cherry-pick from ff77a927f9
This commit is contained in:
Joe Mooring 2023-11-04 15:19:28 +05:30 committed by Aditya Telange
parent 87df659c18
commit cf62fa3c40
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@
<link>{{ index . 0 | absURL }}</link>
</image>
{{- end }}
<generator>Hugo -- gohugo.io</generator>{{ with site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with site.Author.email }}
<generator>Hugo -- gohugo.io</generator>
<language>{{ site.Language.LanguageCode }}</language>{{ with site.Author.email }}
<managingEditor>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with site.Author.email }}
<webMaster>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}