2022-10-21 00:08:49 +08:00
|
|
|
<%
|
|
|
|
const {
|
|
|
|
enable: t_comment_enable,
|
|
|
|
use: t_comment_use
|
|
|
|
} = theme?.comment
|
|
|
|
%>
|
2020-04-14 21:18:37 +08:00
|
|
|
<div class="comments-container">
|
2022-10-13 22:51:32 +08:00
|
|
|
<div id="comments-anchor"></div>
|
2021-01-25 10:37:39 +08:00
|
|
|
<div class="comment-area-title">
|
2022-09-26 23:18:57 +08:00
|
|
|
<i class="fas fa-comments"></i> <%- __('comments') %>
|
2021-01-19 23:20:27 +08:00
|
|
|
</div>
|
2022-10-21 00:08:49 +08:00
|
|
|
<% if (t_comment_enable === true && t_comment_use) { %>
|
|
|
|
<% if (t_comment_use === 'valine') { %>
|
2021-01-28 17:44:01 +08:00
|
|
|
<%- partial('valine') %>
|
|
|
|
|
2022-10-21 00:08:49 +08:00
|
|
|
<% } else if (t_comment_use === 'gitalk') { %>
|
2021-01-28 17:44:01 +08:00
|
|
|
<%- partial('gitalk') %>
|
|
|
|
|
2022-10-21 00:08:49 +08:00
|
|
|
<% } else if (t_comment_use === 'twikoo') { %>
|
2021-01-28 17:44:01 +08:00
|
|
|
<%- partial('twikoo') %>
|
|
|
|
|
2022-10-21 00:08:49 +08:00
|
|
|
<% } else if (t_comment_use === 'waline') { %>
|
2022-10-13 22:51:32 +08:00
|
|
|
<%- partial('waline') %>
|
|
|
|
|
2021-01-28 17:44:01 +08:00
|
|
|
<% } %>
|
2020-04-14 21:18:37 +08:00
|
|
|
<% } %>
|
2020-10-25 10:48:07 +08:00
|
|
|
</div>
|