From ecb6835e4478af98513618cfad364a61001c2e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8hannes=20Lippmann?= Date: Wed, 28 Apr 2021 09:46:51 +0200 Subject: [PATCH] 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. --- layouts/partials/footer.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1f55f04..cbbace7 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -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 }} - {{ if $author }} + {{ if (and $contactMeEnabled $author) }}
{{ i18n "contact_me" }}