chore(comment): add an option for gitalk

This commit is contained in:
ppoffice 2019-07-05 00:50:52 -04:00
parent 3cd4b5dc47
commit 30066ee8d8
2 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,12 @@ const GitmentGitalkSpec = {
[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: {
[type]: 'boolean',
[doc]: 'Facebook-like distraction free mode',

View File

@ -16,6 +16,7 @@
repo: '<%= get_config('comment.repo') %>',
owner: '<%= get_config('comment.owner') %>',
admin: <%- JSON.stringify(get_config('comment.admin'))%>,
createIssueManually: <%= get_config('comment.create_issue_manually', false) %>,
distractionFreeMode: <%= get_config('comment.distraction_free_mode', false) %>
})
gitalk.render('comment-container')