# 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
<!-- LOCAL: You can save these files to your site and update links --> {% if theme.gitment.mint %} {% set CommentsClass = "Gitmint" %} <link rel="stylesheet" href="https://aimingoo.github.io/gitmint/style/default.css"> <script src="https://aimingoo.github.io/gitmint/dist/gitmint.browser.js"></script> {% else %} {% set CommentsClass = "Gitment" %} <!-- <link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css"> --> <!-- <script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script> --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"> <script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js"></script> {% endif %} <!-- END LOCAL -->