From cf9d76728ae651451140663ee699c7547ebc5cbe Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 12 Dec 2020 13:33:18 +0530 Subject: [PATCH] layouts: remove sponsors partial when serving locally Signed-off-by: Harsh Shandilya --- layouts/_default/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c9b93d2..e72c54e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,8 +20,8 @@ {{ partial "tags.html" .}} {{ partial "post-pagination.html" .}} - {{ partial "sponsors.html" .}} - {{ if or .Site.BuildDrafts .Site.IsServer -}} + {{ if not .Site.IsServer -}} + {{ partial "sponsors.html" .}} {{- end }}