diff --git a/CHANGELOG.md b/CHANGELOG.md index 88006aa4..ca904617 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - :sparkles: Feat: add feature post reward support ([#216](https://github.com/hugo-fixit/FixIt/issues/216), @Lruihao[#234](https://github.com/hugo-fixit/FixIt/pull/234)) - :sparkles: Feat: add reward shortcode support ([#216](https://github.com/hugo-fixit/FixIt/issues/216)) +- :sparkles: Feat: add custom templates and parameter `params.customFilePath` support - :sparkles: Feat: add feature end of post flag support ([#236](https://github.com/hugo-fixit/FixIt/issues/236)) - :sparkles: Feat: add params to close wordcount and readingTime in post ([#209](https://github.com/hugo-fixit/FixIt/issues/209)) - :truck: Feat: migrate parameter `params.autoBookmark` to `params.page.autoBookmark` ([#55](https://github.com/hugo-fixit/FixIt/issues/55)) diff --git a/config.toml b/config.toml index 6261107c..15265c56 100644 --- a/config.toml +++ b/config.toml @@ -149,8 +149,6 @@ # Footer config [params.footer] enable = true - # FixIt 0.2.0 | NEW Custom content (HTML format is supported) - custom = "" # FixIt 0.2.0 | NEW whether to show Hugo and theme info hugo = true # FixIt 0.2.0 | NEW whether to show copyright info @@ -732,6 +730,13 @@ light = "" dark = "" height = "2px" + + # 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 [params.dev] diff --git a/docs b/docs index eb874fa0..ebed6cbb 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit eb874fa015493efeda51cb88a9d4f2a5bfddc422 +Subproject commit ebed6cbba2f35f5ec21b2e2d8471ed6b62658c2b diff --git a/layouts/partials/custom/aside.html b/layouts/partials/custom/aside.html index d81902e1..7a275beb 100644 --- a/layouts/partials/custom/aside.html +++ b/layouts/partials/custom/aside.html @@ -1 +1 @@ - +{{- /* Custom aside html */ -}} diff --git a/layouts/partials/custom/footer.html b/layouts/partials/custom/footer.html new file mode 100644 index 00000000..12f7bb23 --- /dev/null +++ b/layouts/partials/custom/footer.html @@ -0,0 +1 @@ +{{- /* Custom footer html */ -}} diff --git a/layouts/partials/custom/profile.html b/layouts/partials/custom/profile.html new file mode 100644 index 00000000..6864fb1b --- /dev/null +++ b/layouts/partials/custom/profile.html @@ -0,0 +1 @@ +{{- /* Custom profile html at home page */ -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b9da7f11..2f4e78d9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,12 +1,14 @@ {{- if ne .Site.Params.footer.enable false -}}