Fix comments condition

Don't show Disqus comments in Hugo local webserver
This commit is contained in:
vimux 2018-06-18 21:48:14 +03:00
parent 384c1ac3e1
commit 4cece3cf46
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -1,4 +1,4 @@
{{ if and (.Site.DisqusShortname) (.Param "comments") }}
{{ if and (.Site.DisqusShortname) (.Param "comments") (not .Site.IsServer) }}
<section class="comments block">
{{ template "_internal/disqus.html" . }}
</section>