# Gitment
# Introduction: https://imsun.net/posts/gitment-introduction/
gitment:
enable: true
mint: true # RECOMMEND, A mint on Gitment, to support count, language and proxy_gateway
count: true # Show comments count in post meta area
lazy: false # Comments lazy loading with a button
cleanly: false # Hide 'Powered by ...' on footer, and more
language: # Force language, or auto switch by theme
github_user: {you github user id}
github_repo: 随便写一个你的公开的git仓库就行,到时候评论会作为那个项目的issue
client_id: {刚才申请的ClientID}
client_secret: {刚才申请的Client Secret}
proxy_gateway: # Address of api proxy, See: https://github.com/aimingoo/intersect
redirect_protocol: # Protocol of redirect_uri with force_redirect_protocol when mint enabled
项目实际配置
1
2
3
4
5
6
7
config.toml 中
[params.gitment] # Gitment is a comment system based on GitHub issues. see https://github.com/imsun/gitment 关于git的评论系统
owner = "MMmaXingXing" # Your GitHub ID
repo = "comments" # The repo to store comments
clientId = "" # Your client ID
clientSecret = "" # Your client secret