hugo-curious icon indicating copy to clipboard operation
hugo-curious copied to clipboard

Unable to revert to Disqus comments

Open mustansiru opened this issue 3 years ago • 1 comments

I have checked all the prerequisites below and I'm yet experiencing a problem

  • [ X] Read the README.md
  • [ X] Have the extended version of Hugo installed
  • [ X] Used the exampleSite's config.toml as a reference

Describe the bug

The talkyard.net is paid service whereas the default Disqus is free. On my blog site, I want to revert back to Disqus. I commented the talkyard specific bits of code, but unable to load Disqus. I specifically did the following:

  • variables in config.toml
  • commented code in comments.html partial and replaced with `{{ template "_internal/disqus.html" . }}
  • added disqusShortname variable to config.toml

Desktop (please complete the following information):

  • OS: macOS
  • Browser Firefox, Chrome, Safari

Please let me know if any other setting needs to be changed to revert to disqus.

mustansiru avatar Jan 17 '22 13:01 mustansiru

Hello, this file includes comments.html only when .Site.Params.comment is not false and .Params.comment is not false 2 more variables (*.comments): https://github.com/vietanhdev/hugo-curious/blob/master/layouts/_default/single.html#L28-L30 Please check and set param comment to true, or remove the if statement on your theme.

vietanhdev avatar Jan 17 '22 13:01 vietanhdev