Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
modify-yml 更改配置文件,尝试使其可以评论
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyLee3362 committed Apr 3, 2024
1 parent 266f92f commit 746cd76
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/posts/hugo-tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
19 changes: 19 additions & 0 deletions hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 746cd76

Please sign in to comment.