fix(comment): gitment undefined error in comment/scripts.ejs
parent
61d75c67b0
commit
5fa0dafb4c
|
@ -58,10 +58,10 @@ comment:
|
|||
changyan: # please fill in `appid` and `conf` to enable
|
||||
appid:
|
||||
conf:
|
||||
gitment:
|
||||
gitment:
|
||||
owner: #your github ID
|
||||
repo: #the repo to store comments
|
||||
#Register an OAuth application, and you will get a client ID and a client secret.
|
||||
#Register an OAuth application, and you will get a client ID and a client secret.
|
||||
client_id: #your client ID
|
||||
client_secret: #your client secret
|
||||
|
||||
|
|
|
@ -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 }) %>
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in New Issue