Add site language fallback for RSS language

This commit is contained in:
Will Faught
2022-12-18 23:46:39 -08:00
parent 4d8a45db40
commit 2d9aa60d21

View File

@@ -24,7 +24,7 @@
<copyright>{{ . }}</copyright>
{{ end }}
<description>Recent content{{ with $title }} in {{ . }}{{ end }}</description>
{{ with .Site.LanguageCode }}
{{ with .Site.LanguageCode | default .Site.Language.Lang }}
<language>{{ . }}</language>
{{ end }}
{{ if and .Date (not .Date.IsZero) }}