summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/sidebar.html6
2 files changed, 7 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 9d9ca60..89ce3f6 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -22,6 +22,8 @@ resourceDir = '../resources'
color_scheme = ''
# Used in site header
tagline = 'a Hugo theme for minimal editions'
+ # Custom footer text
+ footer = ''
[params.assets]
# Relative paths to icons
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index d9f64e1..57bca9d 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -23,8 +23,12 @@
<div class="sidebar-item">
<p>
- Built with <a href="https://github.com/sergeyklay/gohugo-theme-ed" target="_blank">Ed.</a>
+ {{- with site.Params.footer }}
+ {{ . | safeHTML }}
+ {{- else }}
+ Built with <a href="https://github.com/sergeyklay/gohugo-theme-ed" target="_blank" rel="noopener noreferrer">Ed.</a>
Distributed under an MIT license.
+ {{- end }}
</p>
</div>
</aside>