Merge pull request #96 from hankzhangcn/front_matter—comment

Front matter—comment
This commit is contained in:
Eric Shen 2020-11-30 10:27:17 +08:00 committed by GitHub
commit 7b58e4541a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.

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') %>

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>