✨ feat: twikoo
This commit is contained in:
parent
1c3644ef7b
commit
2dd7a5408b
@ -195,7 +195,7 @@ friends_link:
|
||||
url: https://github.com/Shen-Yu/hexo-tag-chart
|
||||
img: https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/img/hexo-tag-chart.png
|
||||
|
||||
# 评论:1、Valine(推荐);2、Gitalk;3、MiniValine
|
||||
# 评论:1、Valine(推荐);2、Gitalk;3、Twikoo; 4.MiniValine
|
||||
|
||||
# 1、Valine[一款快速、简洁且高效的无后端评论系统](https://github.com/xCss/Valine)
|
||||
# 启用Valine必须先创建leancloud应用, 获取 id|key 填入即可
|
||||
@ -218,7 +218,12 @@ gitalk:
|
||||
owner: # GitHub ID
|
||||
admin: # GitHub ID
|
||||
|
||||
# 3、MiniValine
|
||||
# 3、Twikoo(https://github.com/imaegoo/twikoo)
|
||||
twikoo:
|
||||
enable: true
|
||||
envId: #
|
||||
|
||||
# 4、MiniValine
|
||||
# See: https://github.com/MiniValine/MiniValine
|
||||
minivaline:
|
||||
enable: false
|
||||
|
@ -67,5 +67,5 @@
|
||||
post.slug, title: post.title, url: config.url+url_for(post.path) }) %> <% } %>
|
||||
<% if (is_post()) { %> <%- partial('post/gitalk') %> <% } %> <% if
|
||||
(theme.minivaline && theme.minivaline.enable && !post.no_minivaline){ %> <%-
|
||||
partial('post/minivaline') %> <% } %>
|
||||
partial('post/minivaline') %> <% } %> <% if (is_post()) { %> <%- partial('post/twikoo') %> <% } %>
|
||||
</article>
|
||||
|
9
layout/_partial/post/twikoo.ejs
Normal file
9
layout/_partial/post/twikoo.ejs
Normal file
@ -0,0 +1,9 @@
|
||||
<% if (!index && theme.twikoo && theme.twikoo.enable){ %>
|
||||
<script src="https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js"></script>
|
||||
<div id="twikoo" class="twikoo"></div>
|
||||
<script>
|
||||
twikoo.init({
|
||||
envId: "<%- theme.twikoo.envId %>"
|
||||
})
|
||||
</script>
|
||||
<% } %>
|
Loading…
Reference in New Issue
Block a user