BlueLake主題增加gitment評論

2021-09-30 15:48:23 字數 862 閱讀 6416

你會得到乙個 client id 和乙個 client secret,這個將被用於之後的使用者登入。

gitment:

enable: true

mint: true

#count: true

lazy: true

cleanly: true

# 是否隱藏'powered by ...'

language: en # 語言,置空則隨主題的語言

github_user: luckystar88 # github使用者名稱

proxy_gateway: # address of api proxy, see:

redirect_protocol: # protocol of redirect_uri with force_redirect_protocol when mint enabled

if theme.gitment.enable

link(rel='stylesheet',href='')

script(src='')

script.

var gitment = new gitment(', // 可選。預設為 location.href

owner:

'#',

repo:

'#',

oauth: ',

client_secret:

'#',

},});

gitment.render('comments')

注意:bluelake主題使用的容器是base.jade中的id=comments的div,所以這裡gitment.render的id不是自己建立的容器。

Hexo主題yilia增加gitalk評論外掛程式

在layout partial post目錄下新增gitalk.ejs檔案 檔案內寫入如下 修改source src css 目錄下comment.scss檔案 padding 0 30px important min height 20px sohucs gitalk enable true gi...

Hexo主題yilia增加gitalk評論外掛程式

如下 如下 padding 0 30px important min height 20px sohucs 如下 如下 gitalk enable true 是否開啟 githubid liu1340308350 你的github使用者名稱 repo liu1340308350.github.io ...

git增加 刪除tag

2 提交tag 3 刪除tag 4 檢視本地tag 5 fatal tag already exists 1.1 當前commit增加tag git add git commit m 提交資訊 之後 git tag tag名在當前commit上增加tag 如git tag 3.1.2 或增加帶備註的...