From d69c5cfef32e74dc61f020068bbfc15ec45fe0a7 Mon Sep 17 00:00:00 2001
From: Jan Baudisch <dev@baudisch.xyz>
Date: Thu, 10 May 2018 00:06:16 +0000
Subject: [PATCH] Update footer to be optional (#20)
---
exampleSite/config.toml | 3 +++
README.md | 4 ++++
layouts/partials/footer.html | 2 +-
3 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/README.md b/README.md
index 71c178c..1101111 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,10 @@
info = "Full Stack DevOps and Magician" # author's job title or info
description = "John Doe's personal website" # site description
keywords = "blog,developer,personal" # site keywords
+
+ # wether you want to hide copyright and credits in the footer
+ hideCredits = false
+ hideCopyright = false
# Social links
[[params.social]]
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 35e3e00..58488e0 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -20,6 +20,9 @@
keywords = "blog,developer,personal"
info = "Full Stack DevOps and Magician"
+ hideCredits = false
+ hideCopyright = false
+
[[params.social]]
name = "Github"
weight = 1
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index f674f1d..6dcae25 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,5 +1,5 @@
<footer class="footer">
<section class="container">
- © {{ .Site.LastChange.Format "2006" }} · Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
+ {{ if not .Site.Params.hideCopyright }} © {{ .Site.LastChange.Format "2006" }} {{ end }} {{ if not .Site.Params.hideCredits}} {{ if not .Site.Params.hideCopyright }} · {{ end }} Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>. {{ end }}
</section>
</footer>
--
Gitblit v1.10.0