Fixes issue #53

- Only hide the powered by line when setting showPoweredBy to false
This commit is contained in:
Nishant Srivastava 2019-12-30 17:02:17 +01:00
parent d88ae4069a
commit a49c922100
1 changed files with 6 additions and 6 deletions

View File

@ -4,10 +4,8 @@
{{ partial "footer/go-to-top" . }} {{ partial "footer/go-to-top" . }}
<hr /> <hr />
{{ if $.Param "showPoweredBy" }}
<div class="footer__poweredby"> <div class="footer__poweredby">
{{ partial "footer/site-counter" . }} {{ partial "footer/site-counter" . }}
{{ if $.Site.Copyright }} {{ if $.Site.Copyright }}
<p class="caption"> <p class="caption">
{{ if $.Site.Params.copyrightOptions.enableCopyrightLink }} {{ if $.Site.Params.copyrightOptions.enableCopyrightLink }}
@ -24,7 +22,9 @@
{{ end }} {{ end }}
</p> </p>
{{ end }} {{ end }}
<p class="caption">Powered by <a href="https://gohugo.io/" rel="noreferrer">Hugo</a> and the <a href="https://github.com/zzossig/hugo-theme-zzo" rel="noreferrer">Zzo theme</a></p>
</div> {{ if $.Param "showPoweredBy" }}
{{ end }} <p class="caption">Powered by <a href="https://gohugo.io/" rel="noreferrer">Hugo</a> and the <a href="https://github.com/zzossig/hugo-theme-zzo" rel="noreferrer">Zzo theme</a></p>
{{ end }}
</div>
</footer> </footer>