summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2024-09-17 22:48:28 +0200
committerGitHub <noreply@github.com>2024-09-17 22:48:28 +0200
commit6f1d9131091ae3af22f8c52ba8f04c3a9d5a41dd (patch)
tree2c0a8bdfdd87cffbf3c6881567328a68430fe181 /layouts
parent3a4e3d9de5efd60f1376d04b661e6bc9226bbd80 (diff)
parente5f73a1ca562be7faf34df5bffdcd0e1a4d8aba3 (diff)
Merge pull request #24 from arunmathaisk/main
feat: Content License and Copyright holder as Footer
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/footer.html19
2 files changed, 15 insertions, 6 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 373e635..08a2d25 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -27,7 +27,7 @@
<footer>
{{ partial "footer.html" . }}
</footer>
-
+
</body>
<script>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 9f307e1..e8f0096 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,8 +1,17 @@
-<p>Powered by
- <a href="https://gohugo.io/">Hugo</a>
- and
- <a href="https://github.com/tomfran/typo">tomfran/typo</a>
-</p>
+{{ $showFooter := default true .Site.Params.showFooter }}
+{{ if $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" . }}