mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
♻️ Refactor: move all files in layouts/_default up to the layouts/ root (#607)
The `_default` folder is removed.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{{- $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 "Version" (.Scratch.Get "version") | merge $options -}}
|
||||
{{- $options = dict "Title" $title "Pages" .Pages | merge $options -}}
|
||||
{{- partial "feed/rss.html" $options -}}
|
||||
Reference in New Issue
Block a user