From 0a67c51495da82269a34c846e02083036e3e4b25 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 26 Dec 2022 11:38:01 +0800 Subject: [PATCH] :truck: Feat: merge parameter `footer.custom` to custom file --- config.toml | 3 +++ docs | 2 +- layouts/partials/custom/footer.html | 5 +++++ layouts/partials/footer.html | 6 ------ layouts/partials/init/detection-deprecated.html | 3 --- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/config.toml b/config.toml index eaf73351..581e3208 100644 --- a/config.toml +++ b/config.toml @@ -160,6 +160,9 @@ # Footer config [params.footer] enable = true + # FixIt 0.2.17 | CHANGED Custom content (HTML format is supported) + # For advanced use, see parameter `params.customFilePath.footer` + 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 diff --git a/docs b/docs index de5dc859..cb80c07b 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit de5dc859b263f298dab01d17be24cdf33f23b40a +Subproject commit cb80c07b28ea21a1c9fcc4b25d634a5fb78c5232 diff --git a/layouts/partials/custom/footer.html b/layouts/partials/custom/footer.html index 12f7bb23..08cc858a 100644 --- a/layouts/partials/custom/footer.html +++ b/layouts/partials/custom/footer.html @@ -1 +1,6 @@ {{- /* Custom footer html */ -}} +{{- with .Site.Params.footer.custom -}} + +{{- end -}} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3d35ae0e..2f596e2d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,12 +1,6 @@ {{- if ne .Site.Params.footer.enable false -}}