fix: comment plugin will always be gitment if others are unset

This commit is contained in:
ppoffice 2017-08-25 22:48:33 -05:00
parent 451198931d
commit fb574207f9
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,11 @@
<section id="comments"><%- partial('comment/changyan') %></section>
<% } else if (theme.comment.livere) { %>
<section id="comments"><%- partial('comment/livere') %></section>
<% } else if (theme.comment.gitment) { %>
<% } else if (theme.comment.gitment &&
theme.comment.gitment.owner &&
theme.comment.gitment.repo &&
theme.comment.gitment.client_id &&
theme.comment.gitment.client_secret) { %>
<section id="comments"><%- partial('comment/gitment') %></section>
<% } %>
<% } %>