mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
3e8bdfd8f9
* ⚡ Perf: adjust global/site scope state management * ⚡ Perf: adjust page scope state management
10 lines
617 B
XML
10 lines
617 B
XML
{{- $title := title (.Params.Title | default ((T .Section) | default .Section | dict "Some" | T "allSome")) -}}
|
|
{{- if .Site.Params.withSiteTitle -}}
|
|
{{- $title = printf "%s %s %s" $title .Site.Params.titleDelimiter .Site.Title -}}
|
|
{{- end -}}
|
|
{{- $config := (.Params.feed | default dict) | merge .Site.Params.section.feed | merge .Site.Params.feed -}}
|
|
{{- $options := dict "Site" .Site "Config" $config "OutputFormats" .OutputFormats -}}
|
|
{{- $options = dict "Permalink" .Permalink | merge $options -}}
|
|
{{- $options = dict "Title" $title "Pages" .Pages | merge $options -}}
|
|
{{- partial "feed/rss.html" $options -}}
|