diff --git a/_config.yml b/_config.yml index bad5b29..64003f7 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 5fdebc8..2dafb6a 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -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') %> <% } %> diff --git a/layout/_partial/post/twikoo.ejs b/layout/_partial/post/twikoo.ejs new file mode 100644 index 0000000..db3e7f1 --- /dev/null +++ b/layout/_partial/post/twikoo.ejs @@ -0,0 +1,9 @@ +<% if (!index && theme.twikoo && theme.twikoo.enable){ %> + +
+ +<% } %> \ No newline at end of file