🚚 Feat: migrate parameter params.autoBookmark to params.page.autoBookmark (#55)

This commit is contained in:
Cell
2022-10-05 20:15:04 +08:00
parent 5efebec3ae
commit eee891a00e
5 changed files with 13 additions and 6 deletions
+1
View File
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
> Snapshot: <>
- :truck: Feat: migrate parameter `params.autoBookmark` to `params.page.autoBookmark` ([#55](https://github.com/hugo-fixit/FixIt/issues/55))
- :bug: Fix: remove the leading and trailing whitespace of the code string ([#205](https://github.com/hugo-fixit/FixIt/issues/205))
- **Full Changelog:** @Lruihao [`v0.2.16...v0.2.17`](https://github.com/hugo-fixit/FixIt/compare/v0.2.16...v0.2.17)
+3 -3
View File
@@ -81,9 +81,6 @@
# FixIt 0.2.14 | NEW FixIt will, by default, inject a theme meta tag in the HTML head on the home page only.
# You can turn it off, but we would really appreciate if you dont, as this is a good way to watch FixIt's popularity on the rise.
disableThemeInject = false
# FixIt 0.2.16 | NEW Auto Bookmark Support
# If true, save the reading progress when closing the page.
autoBookmark = false
# FixIt 0.2.0 | NEW App icon config
[params.app]
@@ -338,6 +335,9 @@
pageStyle = "normal"
# FixIt 0.2.14 | NEW Gravatar is force-used as the author's avatar
gravatarForce = false
# FixIt 0.2.17 | CHANGED Auto Bookmark Support
# If true, save the reading progress when closing the page.
autoBookmark = false
# FixIt 0.2.15 | NEW Repost config
[params.page.repost]
enable = false
+1 -1
Submodule docs updated: bfdc311fbd...6bc07571d1
+4 -2
View File
@@ -238,8 +238,10 @@
{{- end -}}
{{- /* Auto Bookmark */ -}}
{{- with .Site.Params.autoBookmark -}}
{{- $config = dict "autoBookmark" . | merge $config -}}
{{- if eq .Kind "page" -}}
{{- with $params.autoBookmark -}}
{{- $config = dict "autoBookmark" . | merge $config -}}
{{- end -}}
{{- end -}}
{{- range $params.library.css -}}
@@ -7,6 +7,10 @@
{{- with .Site.Params.ibruce.siteTime -}}
{{- $warnErrors = $warnErrors | append "The parameter `ibruce.siteTime` is deprecated since v0.2.14, use `footer.siteTime` instead." -}}
{{- end -}}
{{- with .Site.Params.autoBookmark -}}
{{- $warnErrors = $warnErrors | append "The parameter `autoBookmark` is deprecated since v0.2.17, use `page.autoBookmark` instead." -}}
{{- end -}}
{{- if len $warnErrors -}}
{{- warnf "Deprecated parameter detection until %v\n - %v\n\n" (.Scratch.Get "version") (delimit $warnErrors "\n - ") -}}
{{- end -}}