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

github.com/appernetic/hugo-nederburg-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Martin Viva <pmviva@gmail.com>2018-04-03 06:07:56 +0300
committerPablo Martin Viva <pmviva@gmail.com>2018-04-03 06:07:56 +0300
commit3abb97b44333df78ffa9e669accf4e9a47e65ddb (patch)
treedcaba6f115632ea6041e3d1d77ed171fb9670753
parent920700a5a728db8d6ab0b368c775404b64e4ddeb (diff)
Allow customization of copyright in theme config
-rw-r--r--exampleSite/config.toml6
-rw-r--r--layouts/partials/footer.html10
2 files changed, 14 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index b070b7e..db4357e 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -12,12 +12,16 @@ paginate = 5 #frontpage pagination
[params]
slogan = "A fast &amp; secure theme"
description = "Describe your website" # meta description
- copyright = "&copy;2018 Göran Svensson"
author = "Göran Svensson"
authorLink = "https://appernetic.io/"
bio = [
"Göran is an avid blogger and the founder of <a href='https://appernetic.io/'>Appernetic.io</a>. This is the author bio shown after posts."
]
+ copyright = [
+ "&copy; 2018 Göran Svensson",
+ "Nederburg Hugo Theme by [Appernetic](https://appernetic.io).",
+ "A port of Tracks by Compete Themes."
+ ]
# Contact page
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 3b17ef4..be4bf2b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -98,7 +98,15 @@
</li>
{{end}}
</ul> <div class="design-credit">
+ {{ range .Site.Params.copyright }}
+ <p>{{ . | markdownify }}</p>
+ {{ else }}
<p>
- Nederburg Hugo Theme by <a target="_blank" href="https://appernetic.io">Appernetic</a>.</p><p>A port of Tracks by Compete Themes.</p>
+ Nederburg Hugo Theme by <a target="_blank" href="https://appernetic.io">Appernetic</a>.
+ </p>
+ <p>
+ A port of Tracks by Compete Themes.
+ </p>
+ {{ end }}
</div>
</footer>