comments_configuration

  1. 新建一个github repository(必须是public),用于存储blog的评论
创建仓库并打开discussion
  1. 点击右上角的Settings,打开discussion(set up) 设置discussion

  2. 下载giscus软件 https://github.com/apps/giscus 下载giscus

  3. 在giscus的设置中,选择你刚刚创建的repository,并个性化自己的评论插件功能,这里的设置按照要求来就可以了 https://giscus.app/zh-CN#repository 设置giscus

  4. 在fluid主题的_config.yml中添加配置信息

修改config.yml文件 上图这个地方不知道是我yml文件之前复制粘贴出现了问题,我的配置文件中有两个comments的配置项,两个都改成true就可以了,这里还真耗了我半个小时,一直没想到是这里有问题

1
2
3
4
5
6
7
8
9
10
11
12
13
14

```yaml line
comments:
giscus:
repo: "your_github_username/your_repository_name"
repo_id: "your_repository_id"
category: "Announcements"
category_id: "your_category_id"
mapping: "pathname"
reactions_enabled: "1"
emit_metadata: "0"
input_position: "top"
theme: "light_high_contrast"
lang: "zh-CN"


comments_configuration
http://lyklbw.github.io/2025/03/31/comments-configuration/
作者
lyklbw
发布于
2025年3月31日
许可协议