Allow to disable the footer navigation. Default is enabled.

This commit is contained in:
Jøhannes Lippmann 2021-04-28 12:08:32 +02:00
parent efbae64baf
commit d32ff174a7

View file

@ -1,4 +1,5 @@
{{ $footerEnabled := site.Params.footer.enable | default true }} {{ $footerEnabled := site.Params.footer.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 }}
@ -41,6 +42,7 @@
<footer class="container-fluid text-center align-content-center footer pb-2"> <footer class="container-fluid text-center align-content-center footer pb-2">
<div class="container pt-5"> <div class="container pt-5">
<div class="row text-left"> <div class="row text-left">
{{ if $navigationEnabled }}
<div class="col-md-4 col-sm-12"> <div class="col-md-4 col-sm-12">
<h5>{{ i18n "navigation" }}</h5> <h5>{{ i18n "navigation" }}</h5>
{{ if $sections }} {{ if $sections }}
@ -58,8 +60,8 @@
{{- end }} {{- end }}
</ul> </ul>
{{ end }} {{ end }}
</div> </div>
{{ end }}
{{ if (and $contactMeEnabled $author) }} {{ if (and $contactMeEnabled $author) }}
<div class="col-md-4 col-sm-12"> <div class="col-md-4 col-sm-12">
<h5>{{ i18n "contact_me" }}</h5> <h5>{{ i18n "contact_me" }}</h5>