hexo/node_modules/hexo-theme-fluid/layout/_partials/comments.ejs

9 lines
404 B
Plaintext
Raw Normal View History

2023-09-25 15:58:56 +08:00
<% if ((!is_post() && !is_page()) || (is_post() && theme.post.comments.enable && page.comments) || (is_page() && page.comments)) { %>
<% var commentType = typeof page.comment === 'string' && page.comment !== '' ? page.comment : theme.post.comments.type %>
<% if (commentType) { %>
<article id="comments">
<%- partial('_partials/comments/' + commentType) %>
</article>
<% } %>
<% } %>