layouts: remove sponsors partial when serving locally

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-12-12 13:33:18 +05:30
parent 922e33b3b6
commit cf9d76728a
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@
</article>
{{ partial "tags.html" .}}
{{ partial "post-pagination.html" .}}
{{ partial "sponsors.html" .}}
{{ if or .Site.BuildDrafts .Site.IsServer -}}
{{ if not .Site.IsServer -}}
{{ partial "sponsors.html" .}}
{{- end }}
</div>
</div>