Setting Up Disqus Comments in Hugo

Create comments file First create a html file in: layouts/partials/comments.html This is applicable mostly for the PaperMod theme. Other themes usually use a disqus.html file. It is important to name the file in the right way so your theme will recognise it. Check the documentation of your theme, in my case the PaperMod theme documentation about comments is here: https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-features/#comments Hugo Disqus template Copy from Hugo repository tpl/tplimpl/embedded/templates/disqus.html Add all the lines in the previously created comments....

January 3, 2021 · 1 min · Al3xis