Skip to content

Commit

Permalink
接入 giscus GitHub discussion 评论系统
Browse files Browse the repository at this point in the history
  • Loading branch information
imbant committed Aug 26, 2024
1 parent 4183622 commit 390eef9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion themes/maupassant/layout/post.pug
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,21 @@ block content
include _partial/post_nav.pug

if page.comments
include _partial/comments.pug
include _partial/comments.pug

.giscus

script(src="https://giscus.app/client.js"
data-repo="imbant/blog"
data-repo-id="MDEwOlJlcG9zaXRvcnkyNDkzOTc0NDM="
data-category="General"
data-category-id="DIC_kwDODt2Aw84Ch79K"
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)

0 comments on commit 390eef9

Please sign in to comment.