Merge pull request #159 from kuohuanhuan-forkonly/dev

Gitalk 支援多管理員設定
This commit is contained in:
指间的诗意 2022-09-23 11:52:18 +08:00 committed by GitHub
commit f316f865cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -173,6 +173,7 @@ comment:
# See: https://github.com/gitalk/gitalk # See: https://github.com/gitalk/gitalk
gitalk: gitalk:
github_id: # GitHub repo owner github_id: # GitHub repo owner
github_admins: # GitHub Admins (in Array type), optional.
repository: # Repository name to store issues repository: # Repository name to store issues
client_id: # GitHub Application Client ID client_id: # GitHub Application Client ID
client_secret: # GitHub Application Client Secret client_secret: # GitHub Application Client Secret

View File

@ -24,7 +24,7 @@
clientSecret: '<%= theme.comment.gitalk.client_secret %>', clientSecret: '<%= theme.comment.gitalk.client_secret %>',
repo: '<%= theme.comment.gitalk.repository %>', repo: '<%= theme.comment.gitalk.repository %>',
owner: '<%= theme.comment.gitalk.github_id %>', owner: '<%= theme.comment.gitalk.github_id %>',
admin: ['<%= theme.comment.gitalk.github_id %>'], admin: <% if (theme.comment.gitalk.github_admins) { %><%= theme.comment.gitalk.github_admins %><% } else { %>['<%= theme.comment.gitalk.github_id %>']<% } %>,
id: __gitalk__pathname, id: __gitalk__pathname,
language: '<%= config.language %>' language: '<%= config.language %>'
}).render('gitalk-container'); }).render('gitalk-container');