binario/layouts/partials/comments.html
Vimux 2558f6bbde
Fix deprecated config params (GA, Disqus) (#89)
As of Hugo 0.120.0, `.Site.disqusShortname` and `.Site.googleAnalytics` are deprecated. Backward
compatible change, new notation supported from Hugo v0.41. See
4ddcf52ccc
2023-12-09 14:04:44 -05:00

5 lines
No EOL
190 B
HTML

{{ if and (.Site.Config.Services.Disqus.Shortname) (.Param "comments") (not .Site.IsServer) }}
<section class="comments block">
{{ template "_internal/disqus.html" . }}
</section>
{{ end }}