add more options to gitalk

This commit is contained in:
flymin
2020-02-07 11:53:29 +08:00
Unverified
parent 24269f457e
commit eec30fd6be
2 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
if theme.gitalk && theme.gitalk.enable
#gitalk-container
script.
var createIssueManually = #{ theme.gitalk.createIssueManually } == true ? true : false;
var distractionFreeMode = #{ theme.gitalk.distractionFreeMode } == true ? true : false;
var gitalk = new Gitalk({
clientID: '!{theme.gitalk.client_id}',
clientSecret: '!{theme.gitalk.client_secret}',
@@ -8,6 +10,8 @@ if theme.gitalk && theme.gitalk.enable
owner: '!{theme.gitalk.owner}',
admin: '!{theme.gitalk.admin}',
id: md5(decodeURI(location.pathname)),
createIssueManually: createIssueManually,
distractionFreeMode: distractionFreeMode,
language: '!{theme.gitalk.language}',
updateCountCallback: commentCount
})