mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
first commit
This commit is contained in:
13
layout/includes/comments/gitalk.pug
Normal file
13
layout/includes/comments/gitalk.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user