khusika / FeelIt

A clean, elegant but advanced blog theme for Hugo
https://feelit.khusika.dev
MIT License
164 stars 60 forks source link

[BUG] Comments don't work. #75

Closed The-Inamati closed 2 years ago

The-Inamati commented 2 years ago

Describe the bug

I'm trying to enable comments with vssue but it's not working. I created an OAuth App in Github according to their documentation. I edited the config.toml file with the client ID and secret but it still doesn't work. It says "failed to load comments". I also tried with telegram and gittalk and didn't work so I'm pretty sure I'm doing something wrong. Can anybody help?

Expected behavior

I expected the comments to work.

lewisdenny commented 2 years ago

Yeah I was unable to get the telegram comments working on my site following the documentation +1

Happy to help with testing.

The-Inamati commented 2 years ago

I have now tried all of them and none worked.

khusika commented 2 years ago

I can confirm that only telegram comments didn't work, the rest worked for me

Edited: telegram comment also worked for me (not working if you are on localhost)

khusika commented 2 years ago

I edited the config.toml file with the client ID and secret but it still doesn't work. It says "failed to load comments".

Vssue Comment aren't loaded if you are on localhost

The-Inamati commented 2 years ago

I'm not. I'm running on a custom domain.

khusika commented 2 years ago

I'm not. I'm running on a custom domain.

Make sure to enable this config

    [params.page.comment]
      enable = true
lewisdenny commented 2 years ago

Hey khusika,

Just to be clear this is all you are enabling to get Telegram comments working?

[params.page.comment]
  enable = true
  [params.page.comment.telegram]
    enable = true
    siteID = "********"
    limit = 5
    height = ""
    color = ""
    colorful = true
    dislikes = true
    outlined = false

Because this still isn't working for me, I even tried enabling comments directly on the content page with:

comment:
  enable: true

Do you have any example sites using your theme with Telegram comments and public configs I could compare with?

lewisdenny commented 2 years ago

I just tried using comment.vssue from the example site with no luck so it must be something on my side. Is it a requirement that my site use https for comments to work?

eyllanesc commented 2 years ago

I just tried using comment.vssue from the example site with no luck so it must be something on my side. Is it a requirement that my site use https for comments to work?

Use -e production option.

khusika commented 2 years ago

Closed because there is no problem with the comments system