mirror of https://github.com/luizdepra/hugo-coder.git

Jan Baudisch
10.06.2018 d69c5cfef32e74dc61f020068bbfc15ec45fe0a7
Update footer to be optional (#20)

* Update footer to be optional

* Update example with optional footer

* Update README with optional footer
3 files modified
9 ■■■■ changed files
README.md 4 ●●●● patch | view | raw | blame | history
exampleSite/config.toml 3 ●●●●● patch | view | raw | blame | history
layouts/partials/footer.html 2 ●●● patch | view | raw | blame | history
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]]
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
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>