Allow to enable/disable the "contact me" section in the footer.
Just set `footer.contactMe.enable` in the config. Default is true, for backwards compatibility.
This commit is contained in:
parent
674156343d
commit
ecb6835e44
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
{{ $footerEnabled := site.Params.footer.enable | default true }}
|
||||
{{ $contactMeEnabled := site.Params.footer.contactMe.enable | default true }}
|
||||
|
||||
{{ if $footerEnabled }}
|
||||
{{ $author:= site.Data.author }}
|
||||
|
@ -58,7 +59,7 @@
|
|||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ if $author }}
|
||||
{{ if (and $contactMeEnabled $author) }}
|
||||
<div class="col-md-4 col-sm-12">
|
||||
<h5>{{ i18n "contact_me" }}</h5>
|
||||
<ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue