From 7f7d8cfb2221205f83d1c79f04232d0b88a5d461 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 28 Aug 2020 16:39:06 +0530 Subject: [PATCH] add ability to disbale share on certain pages add disableShare = true in page params --- disableShare: true --- --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4aee13f0..f1d24077 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -36,7 +36,7 @@ {{- end }} {{- end }} - {{ if .Site.Params.ShowShareButtons }} + {{ if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true) ) }} {{ partial "share-icons.html" . }} {{ end }}