<% var enableDisqus = false; var enableLivere = false; var enableGitalk = false; var enableVssue = false; var enableValine = false; var enableMiniValine = false; if (theme.comments && page && page.comments == true) { if (theme.comments.disqus && theme.comments.disqus.shortname) { enableDisqus = true; } if (theme.comments.livere && theme.comments.livere.uid) { enableLivere = true; } if (theme.comments.gitalk && theme.comments.gitalk.clientID) { enableGitalk = true; } if (theme.comments.vssue && theme.comments.vssue.clientId) { enableVssue = true; } if (theme.comments.valine && theme.comments.valine.appId) { enableValine = true; } if (theme.comments.minivaline && theme.comments.minivaline.appId) { enableMiniValine = true; } } %> <% if (enableDisqus || enableLivere || enableGitalk || enableVssue || enableValine || enableMiniValine) { %>

<%- theme.comments && theme.comments.title %>

<% if (theme.comments && theme.comments.subtitle) { %>

<%- theme.comments.subtitle %>

<% } %> <% if (enableDisqus) { %>
 <%- __('post.comments_placeholder', 'Disqus') %>
<% } %> <% if (enableLivere){ %>
<% } %> <% if (enableGitalk){ %>
<% } %> <% if (enableVssue){ %>
<% } %> <% if (enableValine){ %>
<% } %> <% if (enableMiniValine){ %>
<% } %>
<% } else { %> <% page.comments = false; %> <% } %>