Make footer template more consistent.
Enabling footers elements and the newsletter is now managed in the same place.
This commit is contained in:
parent
ecb6835e44
commit
efbae64baf
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
{{ $footerEnabled := site.Params.footer.enable | default true }}
|
||||
{{ $contactMeEnabled := site.Params.footer.contactMe.enable | default true }}
|
||||
{{ $newsLetterEnabled := site.Params.newsletter.enable }}
|
||||
|
||||
{{ if $footerEnabled }}
|
||||
{{ $author:= site.Data.author }}
|
||||
|
@ -69,7 +70,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if site.Params.newsletter.enable }}
|
||||
{{ if $newsLetterEnabled }}
|
||||
<div class="col-md-4 col-sm-12">
|
||||
<!-- <h5>Newsletter</h5> -->
|
||||
<p>{{ i18n "newsletter_text" }}</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue