binario/layouts/partials/comments.html

11 lines
354 B
HTML
Raw Normal View History

{{- $server := "" }}
{{- if ge (int (index (split hugo.Version ".") 1)) "120" }}
{{- $server = hugo.IsServer }}
{{- else }}
{{- $server = .Site.IsServer }}
{{- end }}
{{- if and (.Site.Config.Services.Disqus.Shortname) (.Param "comments") (not $server) }}
2018-02-23 13:01:12 +00:00
<section class="comments block">
{{ template "_internal/disqus.html" . }}
</section>
{{- end }}