Comments using Disqus #454
-
Is there a way to enable commenting via Disqus instead of Utterance? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hugo has out of the box support for Discus, see here. It looks very easy to add. The template call should be added to 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 😁 |
Beta Was this translation helpful? Give feedback.
-
Hello, I tried to add disqus with partial without success... If someone have an idea : https://deploy-preview-41--tourdesminous.netlify.app/destinations/indonesie/2023-10-22-ubud-munduk/ Github : https://github.com/dims31/tdm/tree/feat-disqus Any help will be really appreciated ! |
Beta Was this translation helpful? Give feedback.
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 😁