mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-03 20:22:41 +00:00
9f24e82770
* ✨ Feat: add archives page template * 🎨 Style: add some icon for theme built-in templates * 🔧 Chore: set site home relative permalink globally * 🔧 Chore: add archives outputs config
12 lines
752 B
HTML
12 lines
752 B
HTML
{{- /* Set customFilePath default value */ -}}
|
|
{{- $customFilePath := .Site.Params.customFilePath -}}
|
|
{{- $customFilePath = dict "aside" ($customFilePath.aside | default "custom/aside.html") | merge $customFilePath -}}
|
|
{{- $customFilePath = dict "profile" ($customFilePath.profile | default "custom/profile.html") | merge $customFilePath -}}
|
|
{{- $customFilePath = dict "footer" ($customFilePath.footer | default "custom/footer.html") | merge $customFilePath -}}
|
|
{{- .Scratch.Set "customFilePath" $customFilePath -}}
|
|
|
|
{{- /* Set site home relative permalink */ -}}
|
|
{{- $homeRelPermalink := .Site.Home.RelPermalink -}}
|
|
{{- $homeRelPermalink = strings.TrimSuffix "archives/" $homeRelPermalink -}}
|
|
{{- .Scratch.Set "homeRelPermalink" $homeRelPermalink -}}
|