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 | |
parent | 974bc9f6ffa10d22c5d6f692fe79d71606bbb2d3 (diff) |
feat: show generic footer
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 11 | ||||
-rw-r--r-- | layouts/partials/footer-license.html | 6 | ||||
-rw-r--r-- | layouts/partials/footer.html | 18 |
3 files changed, 15 insertions, 20 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fdee79d..08a2d25 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -25,16 +25,9 @@ </div> <footer> - {{ if .Param "showFooterLicense" }} - <div> - {{ partial "footer-license.html" . }} - </div> - {{ end }} - <div> - {{ partial "footer.html" . }} - </div> + {{ partial "footer.html" . }} </footer> - + </body> <script> 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" . }} |