Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 giscus 作为评论后端 #142

Open
ouuan opened this issue Dec 5, 2024 · 0 comments
Open

使用 giscus 作为评论后端 #142

ouuan opened this issue Dec 5, 2024 · 0 comments

Comments

@ouuan
Copy link
Member

ouuan commented Dec 5, 2024

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

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

效果预览:

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant