添加关闭gitalk评论区的front-matter
在文章头添加`comment: false`可以关闭单篇文章的gitalk评论区。
This commit is contained in:
parent
47d33f0b13
commit
b1def36445
@ -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') %>
|
||||||
|
Loading…
Reference in New Issue
Block a user