Allow to disable credentials and copyright notice. Default: enabled

This commit is contained in:
Jøhannes Lippmann 2021-04-28 12:09:24 +02:00
parent d32ff174a7
commit 40012a73c6

View file

@ -2,6 +2,7 @@
{{ $navigationEnabled := site.Params.footer.navigation.enable | default true }} {{ $navigationEnabled := site.Params.footer.navigation.enable | default true }}
{{ $contactMeEnabled := site.Params.footer.contactMe.enable | default true }} {{ $contactMeEnabled := site.Params.footer.contactMe.enable | default true }}
{{ $newsLetterEnabled := site.Params.newsletter.enable }} {{ $newsLetterEnabled := site.Params.newsletter.enable }}
{{ $credentialsEnabled := site.Params.footer.credentials.enable | default true }}
{{ if $footerEnabled }} {{ if $footerEnabled }}
{{ $author:= site.Data.author }} {{ $author:= site.Data.author }}
@ -95,6 +96,7 @@
{{ end }} {{ end }}
</div> </div>
</div> </div>
{{ if $credentialsEnabled }}
<hr /> <hr />
<div class="container"> <div class="container">
<div class="row text-left"> <div class="row text-left">
@ -116,5 +118,6 @@
</div> </div>
</div> </div>
</div> </div>
{{ end }}
</footer> </footer>
{{end}} {{end}}