chore(comment): add an option for gitalk
This commit is contained in:
parent
3cd4b5dc47
commit
30066ee8d8
|
@ -59,6 +59,12 @@ const GitmentGitalkSpec = {
|
||||||
[required]: true
|
[required]: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
create_issue_manually: {
|
||||||
|
[type]: 'boolean',
|
||||||
|
[doc]: 'Create GitHub issue manually for each page',
|
||||||
|
[defaultValue]: false,
|
||||||
|
[requires]: comment => comment.type === 'gitalk'
|
||||||
|
},
|
||||||
distraction_free_mode: {
|
distraction_free_mode: {
|
||||||
[type]: 'boolean',
|
[type]: 'boolean',
|
||||||
[doc]: 'Facebook-like distraction free mode',
|
[doc]: 'Facebook-like distraction free mode',
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
repo: '<%= get_config('comment.repo') %>',
|
repo: '<%= get_config('comment.repo') %>',
|
||||||
owner: '<%= get_config('comment.owner') %>',
|
owner: '<%= get_config('comment.owner') %>',
|
||||||
admin: <%- JSON.stringify(get_config('comment.admin'))%>,
|
admin: <%- JSON.stringify(get_config('comment.admin'))%>,
|
||||||
|
createIssueManually: <%= get_config('comment.create_issue_manually', false) %>,
|
||||||
distractionFreeMode: <%= get_config('comment.distraction_free_mode', false) %>
|
distractionFreeMode: <%= get_config('comment.distraction_free_mode', false) %>
|
||||||
})
|
})
|
||||||
gitalk.render('comment-container')
|
gitalk.render('comment-container')
|
||||||
|
|
Loading…
Reference in New Issue