While setting up a comment section for my blog, I ran into a few issues and jotted some of them down.
Why Giscus
The Stack theme uses Disqus as its default comment system, but Disqus is a foreign service and requires payment, so I didn’t use it.
The theme also supports other common comment configurations. I first picked Gitalk, which I’d noticed frequently before — using Github Issues as a comment section was quite an eye-catching approach at the time.
However, I ran into some permission problems during configuration and found Gitalk’s permissions somewhat unreasonable: commenters have to authorize their accounts to the blogger in order to comment, and in theory the blogger then gains some permissions over the logged-in user that they shouldn’t have.
On top of that, because of cross-origin issues, you also need to find a proxy to handle CORS, which adds further privacy concerns and configuration overhead.
In the end I chose Giscus. It uses its own App as the permission holder, and as a third party, users only need to authorize that app to complete the Github authorization.
It’s also more convenient and flexible to use.
Configuration Steps
- Install Giscus in
Github - Authorize the repository to the app
- Find
Giscusin Applications - Under
Repository access, select the repository where comments are stored
- Find
- Go to the Giscus website to finish the configuration
- Choose a
语言 - Enter the authorized repository under
仓库, e.g.BoilTask/BoilTask.github.io - Choose the configuration you want based on the descriptions that follow
- Choose a
- Check the required configuration under the
启用 giscussection
Just fill in the generated configuration wherever you need it.