Files
hexo-theme-butterfly/layout/includes/comments/gitment.pug
hwy0127@gmail.com d49414a039 1. fix bugs of gitalk #9
2. fix bugs of valine
2019-06-28 01:24:57 +08:00

13 lines
399 B
Plaintext

if theme.gitment && theme.gitment.enable
#gitment-container
script.
var gitment = new Gitment({
id: md5(decodeURI(location.pathname)),
owner: '!{theme.gitment.owner}',
repo: '!{theme.gitment.repo}',
oauth: {
client_id: '!{theme.gitment.client_id}',
client_secret: '!{theme.gitment.client_secret}'
}
})
gitment.render('gitment-container')