diff options
author | Arun <me@arunmathaisk.in> | 2024-09-15 00:00:26 +0530 |
---|---|---|
committer | Arun <me@arunmathaisk.in> | 2024-09-15 00:00:26 +0530 |
commit | e565f6afa20f81f75ff4fab1f29e1c672a33b3eb (patch) | |
tree | c643aec40288bba69d4b36b292059d4a3e297313 /layouts/partials | |
parent | 974bc9f6ffa10d22c5d6f692fe79d71606bbb2d3 (diff) |
feat: show generic footer
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer-license.html | 6 | ||||
-rw-r--r-- | layouts/partials/footer.html | 18 |
2 files changed, 13 insertions, 11 deletions
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 @@ -<p> - All content licensed under - <b>{{ .Param "licenseType" }}</b> - license unless otherwise stated. - <b>Copyright © {{ .Param "copyrightYear" }} {{ .Param "copyrightHolder" }}.</b> - </p> 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 @@ -<p>Powered by - <a href="https://gohugo.io/">Hugo</a> - and - <a href="https://github.com/tomfran/typo">tomfran/typo</a> -</p> +{{ if .Site.Params.showFooter }} + {{ if not .Site.Params.footerContent }} + <p>Powered by + <a href="https://gohugo.io/">Hugo</a> + and + <a href="https://github.com/tomfran/typo">tomfran/typo</a> + </p> + {{ end }} + + {{ with .Site.Params.footerContent }} + <p>{{ . | markdownify }}</p> + {{ end }} +{{ end }} {{ if .Param "math" }} {{ partialCached "math.html" . }} |