Update footer to be optional (#20)

* Update footer to be optional

* Update example with optional footer

* Update README with optional footer
This commit is contained in:
Jan Baudisch 2018-05-10 02:06:16 +02:00 committed by Luiz F. A. de Prá
parent 9328ab63c8
commit d69c5cfef3
3 changed files with 8 additions and 1 deletions

View File

@ -29,6 +29,10 @@ theme = "coder" # set the theme
description = "John Doe's personal website" # site description description = "John Doe's personal website" # site description
keywords = "blog,developer,personal" # site keywords keywords = "blog,developer,personal" # site keywords
# wether you want to hide copyright and credits in the footer
hideCredits = false
hideCopyright = false
# Social links # Social links
[[params.social]] [[params.social]]
name = "Github" name = "Github"

View File

@ -20,6 +20,9 @@ disqusShortname = "yourdiscussshortname"
keywords = "blog,developer,personal" keywords = "blog,developer,personal"
info = "Full Stack DevOps and Magician" info = "Full Stack DevOps and Magician"
hideCredits = false
hideCopyright = false
[[params.social]] [[params.social]]
name = "Github" name = "Github"
weight = 1 weight = 1

View File

@ -1,5 +1,5 @@
<footer class="footer"> <footer class="footer">
<section class="container"> <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> </section>
</footer> </footer>