fix(comment): gitment undefined error in comment/scripts.ejs

pull/223/merge
ppoffice 2017-06-05 21:40:51 +08:00
parent 61d75c67b0
commit 5fa0dafb4c
2 changed files with 7 additions and 3 deletions

View File

@ -10,6 +10,10 @@
<%- partial('comment/isso', { script: true }) %>
<% } else if (theme.comment.changyan && theme.comment.changyan.appid && theme.comment.changyan.conf) { %>
<%- partial('comment/changyan', { script: true }) %>
<% } else if (theme.comment.gitment.owner && theme.comment.gitment.repo && theme.comment.gitment.client_id && theme.comment.gitment.client_secret) { %>
<% } else if (theme.comment.gitment &&
theme.comment.gitment.owner &&
theme.comment.gitment.repo &&
theme.comment.gitment.client_id &&
theme.comment.gitment.client_secret) { %>
<%- partial('comment/gitment', { script: true }) %>
<% } %>