Skip to content

Commit

Permalink
🔥 Feat: remove params.customFilePath
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed May 22, 2024
1 parent 70afe3e commit a985b0e
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 36 deletions.
12 changes: 0 additions & 12 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion layouts/partials/custom/aside.html

This file was deleted.

6 changes: 0 additions & 6 deletions layouts/partials/custom/footer.html

This file was deleted.

1 change: 0 additions & 1 deletion layouts/partials/custom/profile.html

This file was deleted.

3 changes: 0 additions & 3 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

Expand Down
3 changes: 0 additions & 3 deletions layouts/partials/home/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ <h3 class="home-disclaimer">
</h3>
{{- end -}}

{{- /* TODO remove Custom Content */ -}}
{{- partial (.Scratch.Get "customFilePath").profile . -}}

{{- /* Custom Profile */ -}}
{{- block "custom-profile" . }}{{ end -}}
</div>
7 changes: 0 additions & 7 deletions layouts/partials/init/global.html
Original file line number Diff line number Diff line change
@@ -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 -}}
Expand Down
3 changes: 0 additions & 3 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a985b0e

Please sign in to comment.