Skip to content

Commit 78c802d

Browse files
committed
评论插件 Giscus
1 parent a0943e6 commit 78c802d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

blog.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const BLOG = {
5050
// giscus @see https://giscus.app/
5151
COMMENT_GISCUS_REPO: process.env.NEXT_PUBLIC_COMMENT_GISCUS_REPO || '', // 你的Github仓库名 e.g 'tangly1024/NotionNext'
5252
COMMENT_GISCUS_REPO_ID: process.env.NEXT_PUBLIC_COMMENT_GISCUS_REPO_ID || '', // 你的Github Repo ID e.g ( 設定完 giscus 即可看到 )
53-
COMMENT_GISCUS_CATEGORY: process.env.NEXT_PUBLIC_COMMENT_GISCUS_CATEGORY || '', // 你的Github Discussions 內的 Category 名稱 e.g 'Comments'
5453
COMMENT_GISCUS_CATEGORY_ID: process.env.NEXT_PUBLIC_COMMENT_GISCUS_CATEGORY_ID || '', // 你的Github Discussions 內的 Category ID ( 設定完 giscus 即可看到 )
5554
COMMENT_GISCUS_MAPPING: process.env.NEXT_PUBLIC_COMMENT_GISCUS_MAPPING || 'pathname', // 你的Github Discussions 使用哪種方式來標定文章, 預設 'pathname'
5655
COMMENT_GISCUS_REACTIONS_ENABLED: process.env.NEXT_PUBLIC_COMMENT_GISCUS_REACTIONS_ENABLED || '1', // 你的 Giscus 是否開啟文章表情符號 '1' 開啟 "0" 關閉 預設開啟

components/Giscus.js

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const GiscusComponent = ({ isDarkMode }) => {
1313
<Giscus
1414
repo={BLOG.COMMENT_GISCUS_REPO}
1515
repoId={BLOG.COMMENT_GISCUS_REPO_ID}
16-
category={BLOG.COMMENT_GISCUS_CATEGORY}
1716
categoryId={BLOG.COMMENT_GISCUS_CATEGORY_ID}
1817
mapping={BLOG.COMMENT_GISCUS_MAPPING}
1918
reactionsEnabled={BLOG.COMMENT_GISCUS_REACTIONS_ENABLED}

0 commit comments

Comments
 (0)