AmazingRise / hugo-theme-diary

Moments piled up. A Hugo theme ported from SumiMakito/hexo-theme-Journal.
MIT License
577 stars 198 forks source link

Comments not showing, tried: Giscus and utterances #191

Closed sehHeiden closed 1 month ago

sehHeiden commented 1 month ago

I tried to use Comments with GISCUS first, then utterances. But they did not show.

To Reproduce In hugo.toml:

[params]
  favicon = "/logo.ico"
  enableReadingTime=true
  enableUtterances = true

[params.utterances]
  repo="myrepo/mysite"
  issue-term="pathname"
  theme="github-dark"
  crossorigin="anonymous" 

Then I checked on any site and did not have any commenting function.

Debugging

  1. I opened a page.
  2. Opend the inspector
  3. searched for .utterances
  4. See I frame should have be loaded: But in the source the issue-term is empty: although its set in the hugo.toml. Corrected the source and the iframe was load correctly (until the site was updated).

Environment hugo v0.135.0-f30603c47f5205e30ef83c70419f57d7eb7175ab+extended windows/amd64 BuildDate=2024-09-27T13:17:08Z VendorInfo=gohugoio Firefox: 130.0.1 Additional context Add any other context about the problem here.

sehHeiden commented 1 month ago

Found the problem In the config the parameter is set to be called term. But utteranc.es calles it issue-term.