Skip to content

Comments using Disqus #454

Answered by myrthos
rohitfarmer asked this question in Help
Aug 21, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hugo has out of the box support for Discus, see here. It looks very easy to add. The template call should be added to layouts/partials/assets/comments.html instead of the utterances code in that file.
Besides those changes the Content-Security-Policy in server.html would need to be changed to enable loading the script and styles. Pressing F12 in a Chromium based browser shows what would be required, including any hashes that might need to be added.

That said, there is apparently an issue when running Hugo server, which might need an additional change and it is not quite clear how to make sure that discuss follows the selected light/dark style.

Might be a nice Hinode module in the future 😁

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@0xtiago
Comment options

Answer selected by markdumay
Comment options

You must be logged in to vote
1 reply
@dims31
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants