♻️ Refactor: move all files in layouts/_default up to the layouts/ root (#607)

The `_default` folder is removed.
This commit is contained in:
Cell
2025-06-19 11:51:52 +08:00
committed by GitHub
parent ad092e7f72
commit 6123eaac2c
29 changed files with 9 additions and 5 deletions
+9
View File
@@ -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 -}}