Fix potential undefined error in comment config parsing. (#303)
parent
16aff88fe9
commit
aee653f8e9
|
@ -13,7 +13,8 @@
|
|||
<section id="comments"><%- partial('comment/changyan') %></section>
|
||||
<% } else if (theme.comment.livere) { %>
|
||||
<section id="comments"><%- partial('comment/livere') %></section>
|
||||
<% } else if (theme.comment.valine.on &&
|
||||
<% } else if (theme.comment.valine &&
|
||||
theme.comment.valine.on &&
|
||||
theme.comment.valine.appId &&
|
||||
theme.comment.valine.appKey) { %>
|
||||
<section id="comments"><%- partial('comment/valine') %></section>
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
<%- partial('comment/gitment', { script: true }) %>
|
||||
<% } else if (theme.comment.livere) { %>
|
||||
<%- partial('comment/livere', { script: true }) %>
|
||||
<% } else if (theme.comment.valine.on &&
|
||||
<% } else if (theme.comment.valine &&
|
||||
theme.comment.valine.on &&
|
||||
theme.comment.valine.appId &&
|
||||
theme.comment.valine.appKey) { %>
|
||||
<%- partial('comment/valine', { script: true }) %>
|
||||
|
|
Loading…
Reference in New Issue