mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
🔥 Feat: remove params.customFilePath
This commit is contained in:
@@ -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
|
||||
@@ -777,14 +773,6 @@ enableEmoji = true
|
||||
# "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,
|
||||
# Configure with environment variable `HUGO_PARAMS_GHTOKEN=xxx`, see https://gohugo.io/functions/os/getenv/#examples
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{{- /* Custom aside html */ -}}
|
||||
@@ -1,6 +0,0 @@
|
||||
{{- /* Custom footer html */ -}}
|
||||
{{- with .Site.Params.footer.custom -}}
|
||||
<div class="footer-line custom">
|
||||
{{- safeHTML . -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
@@ -1 +0,0 @@
|
||||
{{- /* Custom profile html at home page */ -}}
|
||||
@@ -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 -}}
|
||||
|
||||
|
||||
@@ -108,9 +108,6 @@
|
||||
</h3>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* TODO remove Custom Content */ -}}
|
||||
{{- partial (.Scratch.Get "customFilePath").profile . -}}
|
||||
|
||||
{{- /* Custom Profile */ -}}
|
||||
{{- block "custom-profile" . }}{{ end -}}
|
||||
</div>
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user