添加关闭gitalk评论区的front-matter

在文章头添加`comment: false`可以关闭单篇文章的gitalk评论区。
This commit is contained in:
hankzhangcn 2020-11-26 15:12:08 +08:00 committed by GitHub
parent 47d33f0b13
commit b1def36445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
<% if (theme.gitalk.enable) { %> <% if (theme.gitalk.enable && post.comment!=false) { %>
<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') %>