Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pfadfinder-konstanz/hugo-dpsg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Mehl <mail@mehl.mx>2020-11-03 10:40:19 +0300
committerMax Mehl <mail@mehl.mx>2020-11-03 10:40:19 +0300
commit055443ac8c8f44f487d05421dcac98cabc2f71d2 (patch)
tree6a8ce1efd52667710fa575c320ca57ee8619680c
parent3474e58a14e6b1ef03af482ad4e67e6e73ccc05b (diff)
allow for free text in footer
-rw-r--r--README.md3
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/footer.html3
3 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 53729b3..59950d6 100644
--- a/README.md
+++ b/README.md
@@ -111,6 +111,9 @@ theme = "hugo-dpsg"
# alternatively "ddg-search" can be used, to search via DuckDuckGo
# widgets = ["ddg-search", "recent", "categories", "taglist", "social", "languages"]
+[Params.footer]
+ text = "[Imprint and Privacy](/imprint)" # Extra text in footer row, understands markdown
+
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
tags_counter = false # Enable counter for each tag in "Tags" widget
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 3e5a4c6..cc55b8e 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -47,6 +47,9 @@ theme = "hugo-dpsg"
recent_num = 5 # Set the number of articles in the "Recent articles" widget
tags_counter = false # Enable counter for each tag in "Tags" widget
+[Params.footer]
+ text = "[Imprint and Privacy](/imprint)" # Extra text in footer row, understands markdown
+
# Custom menu items, normally controlled via front matter in /content files
[menu]
[[menu.main]]
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 560cf48..95d9ac4 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -4,6 +4,7 @@
<div class="footer__copyright">
&copy; {{ now.Format "2006" }} {{ .Site.Params.copyright | default .Site.Title }}.
<span class="footer__copyright-credits">{{ T "footer_credits" | safeHTML }}</span>
+ {{ with .Site.Params.footer.text }}<span>{{ . | markdownify }}</span>{{ end }}
</div>
</div>
-</footer> \ No newline at end of file
+</footer>