diff --git a/content/posts/hugo-tutorial/index.md b/content/posts/hugo-tutorial/index.md index f96831d..f8b02a1 100644 --- a/content/posts/hugo-tutorial/index.md +++ b/content/posts/hugo-tutorial/index.md @@ -31,6 +31,12 @@ taxonomies: tag: tags ``` +## 添加评论功能 + +[Hugo 博客添加 Giscus 评论功能 | 云吱的小站](https://haoyep.com/posts/hugo-add-component/) + +[giscus](https://giscus.app/zh-CN) + ## 参考 [LoveIt](https://hugoloveit.com/zh-cn/) diff --git a/hugo.yml b/hugo.yml index 02f1807..392702c 100644 --- a/hugo.yml +++ b/hugo.yml @@ -118,6 +118,25 @@ params: # minMatchCharLength: 0 # limit: 10 # refer: https://www.fusejs.io/api/methods.html#search # keys: ["title", "permalink", "summary", "content"] + + # 评论功能 + page: + comment: + giscus: + enable: true + repo: JackyLee3362/Jackylee3362.github.io + repoId: R_kgDOLpCD4w + category: Announcements + categoryId: DIC_kwDOLpCD484Ceavz + lang: + mapping: pathname + reactionsEnabled: 1 + emitMetadata: 0 + inputPosition: bottom + lazyLoading: false + lightTheme: light + darkTheme: dark + menu: main: - identifier: categories