docs(pages): 将 Giscus 评论插件添加到博客

2. fix(config): 修复特殊日期判断失败的问题
3. feat(giscus): 加入 Giscus 评论系统
This commit is contained in:
Ad-closeNN
2025-08-17 12:09:39 +08:00
parent 359d428204
commit 4690ce39b2
17 changed files with 395 additions and 73 deletions
+19
View File
@@ -22,4 +22,23 @@ const { Content } = await render(aboutPost);
</Markdown>
</div>
</div>
<br>
<!-- 评论区 -->
<script src="https://giscus.app/client.js"
data-repo="Ad-closeNN/blog-friends"
data-repo-id="R_kgDOPb5ZJw"
data-category="General"
data-category-id="DIC_kwDOPb5ZJ84CuPmR"
data-mapping="title"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="zh-CN"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
</MainGridLayout>
+16
View File
@@ -22,4 +22,20 @@ const { Content } = await render(aboutPost);
</Markdown>
</div>
</div>
<script src="https://giscus.app/client.js"
data-repo="Ad-closeNN/blog-friends"
data-repo-id="R_kgDOPb5ZJw"
data-category="General"
data-category-id="DIC_kwDOPb5ZJ84CuPmR"
data-mapping="title"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="zh-CN"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
</MainGridLayout>
+19 -2
View File
@@ -150,5 +150,22 @@ const customcover = entry.data.customcover;
</div>}
</a>
</div>
</MainGridLayout>
<!-- 评论区 -->
<script src="https://giscus.app/client.js"
data-repo="Ad-closeNN/blog-friends"
data-repo-id="R_kgDOPb5ZJw"
data-category="General"
data-category-id="DIC_kwDOPb5ZJ84CuPmR"
data-mapping="title"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="zh-CN"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
</MainGridLayout>