feat: add no_comment item

This commit is contained in:
SouthFox 2022-08-02 08:08:51 +08:00
parent b9085ba8fa
commit c44e4be9fb
4 changed files with 25 additions and 17 deletions

View file

@ -1,6 +1,8 @@
---
title: 狐说
date: 2021-07-11 17:45:57
no_comment: true
toc: true
---
<link rel="stylesheet" href="/css/foxsay.css" media="screen" type="text/css">

View file

@ -1,6 +1,7 @@
---
title: go
date: 2021-12-31 22:00:00
no_comment: true
---
<meta http-equiv="refresh" content="3;url=https://foreverblog.cn/go.html">

View file

@ -1,6 +1,7 @@
---
title: travellings
date: 2021-03-23 23:45:06
no_comment: true
---
<meta http-equiv="refresh" content="3;url=https://travellings.link">

View file

@ -1,5 +1,8 @@
<blockquote>如不想授权 Giscus 应用,也可以点击下方<strong>左上角数字</strong>直接跳转到 Github Discussions 进行评论。</blockquote>
<% if (theme.enable_comment) { %>
<% if (item.no_comment){ %>
<!-- no comment -->
<% } else { %>
<blockquote>如不想授权 Giscus 应用,也可以点击下方<strong>左上角数字</strong>直接跳转到 Github Discussions 进行评论。</blockquote>
<% if (theme.enable_comment) { %>
<script src="https://giscus.app/client.js"
data-repo="SouthFox-D/SouthFox-D.github.io"
data-repo-id="MDEwOlJlcG9zaXRvcnkyMjg3NDM0MjQ="
@ -13,6 +16,7 @@
data-lang="zh-CN"
crossorigin="anonymous"
async>
</script>
<noscript>Enable JavaScript to view the comments.</a></noscript>
</script>
<noscript>Enable JavaScript to view the comments.</a></noscript>
<% } %>
<% } %>