HEIGE-PCloud / DoIt

A clean, elegant and advanced blog theme for Hugo.
https://hugodoit.pages.dev
MIT License
772 stars 194 forks source link

[BUG] Comments are not visible #554

Closed rolandjitsu closed 2 years ago

rolandjitsu commented 2 years ago

Describe the bug 描述你遇到的错误

It seems like the comments area is not displayed after enabling it.

You can view my config at rolandjitsu/rolandsdev.blog/config.yaml#L162 and the blog at rolandsdev.blog.

Expected behavior 期待的行为

I should be able to view the comments and add new comments.

Screenshots 屏幕截图

No response

Build Environment 构建环境

Preview Environment 预览环境

Additional Information 补充信息

No response

rolandjitsu commented 2 years ago

My bad :laughing: I forgot to enable the parent comment section. It looks great! (though, for giscus, the theming doesn't match).

Meyerclex commented 2 years ago

😥Meet the same bug too. The system I used is Waline. But I could see your comment below the article, did you solve that?

rolandjitsu commented 2 years ago

@Meyerclex it turns out I just missed a config.

Before:

params:
  ...
  page:
    ...
    comment:
      giscus:
        enable: yes
        ...

After:

params:
  ...
  page:
    ...
    comment:
      enable: yes
      giscus:
        enable: yes
        ...

But it's a little confusing to allow many comment systems at the same time 😕 I'd imagine most users would use a single one? 🤷

In any case, I'm loving how easy it is to configure all that!

Meyerclex commented 2 years ago

It still doesn't work with Waline but it does with Utterances. I can‘t find the problem, guess I can only change a comment system😥Thanks for your help!