From 6e441855398b0577681ca525400241d220d0ea23 Mon Sep 17 00:00:00 2001 From: eine Date: Mon, 17 Aug 2020 14:07:01 +0200 Subject: [PATCH 1/2] hide email button if the field is unset in the config --- layouts/partials/header.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 77353c2a..c0ec319d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -35,11 +35,13 @@ {{ end }} + {{ with $.Site.Params.email }} email + {{ end }} {{ with $.Site.Home.OutputFormats.Get "rss" -}} From 2406146dea19040fe55cc02294dca079c199c95c Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Fri, 21 Aug 2020 19:45:51 +0100 Subject: [PATCH 2/2] Update header.html --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c0ec319d..346c3fe0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -36,7 +36,7 @@ {{ end }} {{ with $.Site.Params.email }} - + email