diff --git a/hugo.toml b/hugo.toml index d8a8158e..bdc2010e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -422,6 +422,7 @@ 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 = "" @@ -776,6 +777,7 @@ 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] diff --git a/layouts/partials/init/detection-deprecated.html b/layouts/partials/init/detection-deprecated.html index 9035d078..3a2e7b0a 100644 --- a/layouts/partials/init/detection-deprecated.html +++ b/layouts/partials/init/detection-deprecated.html @@ -6,6 +6,14 @@ {{- $warns = $warns | append "The parameter `params.gitRepo` and `params.page.edit` is deprecated since v0.3.0, use `params.gitInfo` instead." -}} {{- end -}} +{{- with .Site.Params.customFilePath -}} + {{- $warns = $warns | append "The parameter `params.customFilePath` is deprecated since v0.3.7, use `layouts/partials/custom.html` instead." -}} +{{- end -}} + +{{- with .Site.Params.footer.custom -}} + {{- $warns = $warns | append "The parameter `params.footer.custom` is deprecated since v0.3.7, use `layouts/partials/custom.html` instead." -}} +{{- end -}} + {{- if len $warns -}} {{- warnf "Deprecated parameter detection until %v\n - %v\n\n" (.Scratch.Get "version") (delimit $warns "\n - ") -}} {{- end -}} diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index f88c65d5..ba455744 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.6" -}} +{{- .Scratch.Set "version" "v0.3.7-RC" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}