hexo-theme-keep/layout/_partial/comment/comment.ejs

28 lines
732 B
Plaintext
Raw Normal View History

<%
const {
enable: t_comment_enable,
use: t_comment_use
} = theme?.comment
%>
2020-04-14 21:18:37 +08:00
<div class="comments-container">
<div id="comments-anchor"></div>
2021-01-25 10:37:39 +08:00
<div class="comment-area-title">
<i class="fas fa-comments"></i>&nbsp;<%- __('comments') %>
2021-01-19 23:20:27 +08:00
</div>
<% if (t_comment_enable === true && t_comment_use) { %>
<% if (t_comment_use === 'valine') { %>
<%- partial('valine') %>
<% } else if (t_comment_use === 'gitalk') { %>
<%- partial('gitalk') %>
<% } else if (t_comment_use === 'twikoo') { %>
<%- partial('twikoo') %>
<% } else if (t_comment_use === 'waline') { %>
<%- partial('waline') %>
<% } %>
2020-04-14 21:18:37 +08:00
<% } %>
</div>