From 974bc9f6ffa10d22c5d6f692fe79d71606bbb2d3 Mon Sep 17 00:00:00 2001 From: Arun Date: Sat, 14 Sep 2024 00:40:35 +0530 Subject: feat: Content License and Copyright holder as Footer --- layouts/partials/footer-license.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 layouts/partials/footer-license.html (limited to 'layouts/partials') diff --git a/layouts/partials/footer-license.html b/layouts/partials/footer-license.html new file mode 100644 index 0000000..6b05b04 --- /dev/null +++ b/layouts/partials/footer-license.html @@ -0,0 +1,6 @@ +

+ All content licensed under + {{ .Param "licenseType" }} + license unless otherwise stated. + Copyright © {{ .Param "copyrightYear" }} {{ .Param "copyrightHolder" }}. +

-- cgit v1.2.3 From e565f6afa20f81f75ff4fab1f29e1c672a33b3eb Mon Sep 17 00:00:00 2001 From: Arun Date: Sun, 15 Sep 2024 00:00:26 +0530 Subject: feat: show generic footer --- layouts/partials/footer-license.html | 6 ------ layouts/partials/footer.html | 18 +++++++++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) delete mode 100644 layouts/partials/footer-license.html (limited to 'layouts/partials') diff --git a/layouts/partials/footer-license.html b/layouts/partials/footer-license.html deleted file mode 100644 index 6b05b04..0000000 --- a/layouts/partials/footer-license.html +++ /dev/null @@ -1,6 +0,0 @@ -

- All content licensed under - {{ .Param "licenseType" }} - license unless otherwise stated. - Copyright © {{ .Param "copyrightYear" }} {{ .Param "copyrightHolder" }}. -

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9f307e1..5e97056 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,8 +1,16 @@ -

Powered by - Hugo - and - tomfran/typo -

+{{ if .Site.Params.showFooter }} + {{ if not .Site.Params.footerContent }} +

Powered by + Hugo + and + tomfran/typo +

+ {{ end }} + + {{ with .Site.Params.footerContent }} +

{{ . | markdownify }}

+ {{ end }} +{{ end }} {{ if .Param "math" }} {{ partialCached "math.html" . }} -- cgit v1.2.3 From e5f73a1ca562be7faf34df5bffdcd0e1a4d8aba3 Mon Sep 17 00:00:00 2001 From: Arun Date: Sun, 15 Sep 2024 21:28:50 +0530 Subject: fix: set deaflt value of showFooter as true --- layouts/partials/footer.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5e97056..e8f0096 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,5 @@ -{{ if .Site.Params.showFooter }} +{{ $showFooter := default true .Site.Params.showFooter }} +{{ if $showFooter }} {{ if not .Site.Params.footerContent }}

Powered by Hugo -- cgit v1.2.3