Disable ads and Disqus

How do you disable ads and Disqus comments showing up on blog posts?

I have the Disqus short name commented out in config.toml but that seems to have no impact. I've been trawling the web for clues but drawing blanks. I also looked at the config.toml of other blowdown-built sites that use the same theme but nothing jumped out as a possible solution.

If it helps, I use the Hugo-Academic theme with blowdown --> GitHub --> Netlify


Duh! Just had to embed this snippet into the comments.html file in layouts\partials and voila!

{{ if and .Site.DisqusShortname (not (or .Site.Params.disable_comments .Params.disable_comments)) }}
<section id="comments">
  <div id="disqus_thread">
    {{ template "_internal/disqus.html" . }}
{{ end }}


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.