This commit is contained in:
沈宇 2020-12-24 13:37:09 +08:00
commit 4c72c3521c
4 changed files with 6 additions and 5 deletions

View File

@ -207,6 +207,7 @@ layout:
sidebar_width: 8rem sidebar_width: 8rem
# Comment1、Valine (recommended)2、Gitalk # Comment1、Valine (recommended)2、Gitalk
# You can close the comment section on one of your posts by marking `comments: false` in front-matter.
# 1、Valine [A fast, simple & powerful comment system](https://github.com/xCss/Valine) # 1、Valine [A fast, simple & powerful comment system](https://github.com/xCss/Valine)
# You need create leancloud account first (https://console.leancloud.app), then put the id|key in below. # You need create leancloud account first (https://console.leancloud.app), then put the id|key in below.
@ -426,4 +427,4 @@ The basic idea is, whenever using a project using SATA license, people shall sta
## Stargazers over time ## Stargazers over time
[![Stargazers over time](https://starchart.cc/Shen-Yu/hexo-theme-ayer.svg)](https://starchart.cc/Shen-Yu/hexo-theme-ayer) [![Stargazers over time](https://starchart.cc/Shen-Yu/hexo-theme-ayer.svg)](https://starchart.cc/Shen-Yu/hexo-theme-ayer)

View File

@ -1,4 +1,4 @@
<% if (theme.gitalk.enable) { %> <% if (theme.gitalk.enable && post.comments) { %>
<div class="gitalk" id="gitalk-container"></div> <div class="gitalk" id="gitalk-container"></div>
<%- css('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.css') %> <%- css('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.css') %>
<%- js('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.min.js') %> <%- js('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.min.js') %>
@ -18,4 +18,4 @@
gitalk.render('gitalk-container') gitalk.render('gitalk-container')
</script> </script>
<% } %> <% } %>

View File

@ -1,4 +1,4 @@
<% if (!index && theme.leancloud && theme.leancloud.enable){ %> <% if (!index && theme.leancloud && theme.leancloud.enable && post.comments){ %>
<!-- minivaline评论 --> <!-- minivaline评论 -->
<div id="mvcomments-box"> <div id="mvcomments-box">
<div id="mvcomments"></div> <div id="mvcomments"></div>

View File

@ -1,4 +1,4 @@
<% if (!index && theme.leancloud && theme.leancloud.enable){ %> <% if (!index && theme.leancloud && theme.leancloud.enable && post.comments){ %>
<!-- valine评论 --> <!-- valine评论 -->
<div id="vcomments-box"> <div id="vcomments-box">
<div id="vcomments"></div> <div id="vcomments"></div>