diff options
author | Max Mehl <mail@mehl.mx> | 2020-11-03 10:40:19 +0300 |
---|---|---|
committer | Max Mehl <mail@mehl.mx> | 2020-11-03 10:40:19 +0300 |
commit | 055443ac8c8f44f487d05421dcac98cabc2f71d2 (patch) | |
tree | 6a8ce1efd52667710fa575c320ca57ee8619680c | |
parent | 3474e58a14e6b1ef03af482ad4e67e6e73ccc05b (diff) |
allow for free text in footer
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | layouts/partials/footer.html | 3 |
3 files changed, 8 insertions, 1 deletions
@@ -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"> © {{ 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> |