diff --git a/_config.yml b/_config.yml index c982f3b..9b47d2e 100644 --- a/_config.yml +++ b/_config.yml @@ -173,6 +173,7 @@ comment: # See: https://github.com/gitalk/gitalk gitalk: github_id: # GitHub repo owner + github_admins: # GitHub Admins (in Array type), optional. repository: # Repository name to store issues client_id: # GitHub Application Client ID client_secret: # GitHub Application Client Secret diff --git a/layout/_partial/comment/gitalk.ejs b/layout/_partial/comment/gitalk.ejs index 2c5b73f..0d743ad 100644 --- a/layout/_partial/comment/gitalk.ejs +++ b/layout/_partial/comment/gitalk.ejs @@ -24,7 +24,7 @@ clientSecret: '<%= theme.comment.gitalk.client_secret %>', repo: '<%= theme.comment.gitalk.repository %>', 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, language: '<%= config.language %>' }).render('gitalk-container');