From 055443ac8c8f44f487d05421dcac98cabc2f71d2 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Tue, 3 Nov 2020 08:40:19 +0100 Subject: allow for free text in footer --- README.md | 3 +++ exampleSite/config.toml | 3 +++ layouts/partials/footer.html | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) 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 @@ - \ No newline at end of file + -- cgit v1.2.3