Feat: add params.withSiteTitle and params.titleDelimiter to resolve #395

This commit is contained in:
Cell
2023-12-28 15:59:01 +08:00
parent 7aface4334
commit fbe58346e5
15 changed files with 42 additions and 17 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} | {{ .Site.Title -}}
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" -}}
{{- if .Site.Params.withSiteTitle }} {{ .Site.Params.titleDelimiter }} {{ .Site.Title }}{{- end -}}
</title>
<link>
{{- .Permalink -}}