-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgiscus-comments.html
More file actions
45 lines (42 loc) · 1.17 KB
/
giscus-comments.html
File metadata and controls
45 lines (42 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!-- Giscus 评论系统 -->
<script src="https://giscus.app/client.js"
data-repo="jacksoncode/jacksoncode.github.io"
data-repo-id="R_kgDOJ_xxxA"
data-category="Announcements"
data-category-id="DIC_kwDOJ_xxxM4CexxX"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="preferred_color_scheme"
data-lang="zh-CN"
crossorigin="anonymous"
async>
</script>
<!-- Giscus 样式优化 -->
<style>
/* Giscus 评论容器 */
.giscus-frame {
border-radius: 12px;
margin-top: 40px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* 响应式调整 */
@media (max-width: 768px) {
.giscus-frame {
border-radius: 8px;
margin-top: 30px;
}
}
</style>
<!-- 使用说明:
1. 访问 https://giscus.app 获取配置
2. 替换以下参数:
- data-repo: 您的 GitHub 仓库
- data-repo-id: 仓库 ID
- data-category: 讨论区分类
- data-category-id: 分类 ID
3. 确保仓库启用了 Discussions 功能
4. 安装 Giscus GitHub App
-->