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