🔥 Feat: remove params.customFilePath

This commit is contained in:
Cell
2024-05-22 11:45:14 +08:00
parent 70afe3e883
commit a985b0e789
8 changed files with 0 additions and 36 deletions
-12
View File
@@ -422,10 +422,6 @@ enableEmoji = true
# Footer config
[params.footer]
enable = true
# TODO remove in the future
# FixIt 0.2.17 | CHANGED Custom content (HTML format is supported)
# For advanced use, see parameter `params.customFilePath.footer`
custom = ""
# whether to show copyright info
copyright = true
# whether to show the author
@@ -776,14 +772,6 @@ enableEmoji = true
# ["barber-shop", "big-counter", "bounce", "center-atom", "center-circle", "center-radar", "center-simple",
# "corner-indicator", "fill-left", "flash", "flat-top", "loading-bar", "mac-osx", "material", "minimal"]
theme = "minimal"
# TODO remove in the future
# FixIt 0.2.17 | NEW Define custom file paths
# Create your custom files in site directory `layouts/partials/custom` and uncomment needed files below
[params.customFilePath]
# aside = "custom/aside.html"
# profile = "custom/profile.html"
# footer = "custom/footer.html"
# FixIt 0.2.15 | NEW Developer options
# Select the scope named `public_repo` to generate personal access token,
-1
View File
@@ -1 +0,0 @@
{{- /* Custom aside html */ -}}
-6
View File
@@ -1,6 +0,0 @@
{{- /* Custom footer html */ -}}
{{- with .Site.Params.footer.custom -}}
<div class="footer-line custom">
{{- safeHTML . -}}
</div>
{{- end -}}
-1
View File
@@ -1 +0,0 @@
{{- /* Custom profile html at home page */ -}}
-3
View File
@@ -3,9 +3,6 @@
{{- if ne $footerConfig.enable false -}}
<footer class="footer">
<div class="footer-container">
{{- /* TODO remove Custom Content */ -}}
{{- partial (.Scratch.Get "customFilePath").footer . -}}
{{- /* Custom Footer */ -}}
{{- block "custom-footer" . }}{{ end -}}
-3
View File
@@ -108,9 +108,6 @@
</h3>
{{- end -}}
{{- /* TODO remove Custom Content */ -}}
{{- partial (.Scratch.Get "customFilePath").profile . -}}
{{- /* Custom Profile */ -}}
{{- block "custom-profile" . }}{{ end -}}
</div>
-7
View File
@@ -1,10 +1,3 @@
{{- /* 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 -}}
-3
View File
@@ -13,9 +13,6 @@
{{- /* Collection List */ -}}
{{- partial "single/collection-list.html" . -}}
{{- /* TODO remove Custom part for aside */ -}}
{{- partial (.Scratch.Get "customFilePath").aside . -}}
{{- /* Custom Aside */ -}}
{{- block "custom-aside" . }}{{ end -}}
</aside>