2024-08-19 13:38:09 +00:00
|
|
|
{{- $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>
|
2024-08-19 13:38:09 +00:00
|
|
|
{{- end }}
|