Skip to content

使用 giscus 作为评论后端 #142

@ouuan

Description

@ouuan

如果使用 giscus 作为评论后端,可以获得很多 feature,例如 #84#131、楼中楼、reaction、搜索、更加持久的 link(内容改变后不在页面上显示了仍能访问)……

为实现段落评论,需要根据段落内容为 giscus 指定唯一的 term。在样式上,首先需要设置 reactions-enabled="0"input-position="bottom"。如有需要,giscus 也支持自定义 CSS。

效果预览:

image

除了不知道是否真的有的 abuse 嫌疑(如果 feedback 量非常大?),还有一个可能的 drawback 是开太多 iframe(一个页面有太多段落被评论)可能影响性能,实际影响有多大不太清楚。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions