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: 狐说 title: 狐说
date: 2021-07-11 17:45:57 date: 2021-07-11 17:45:57
no_comment: true
toc: true
--- ---
<link rel="stylesheet" href="/css/foxsay.css" media="screen" type="text/css"> <link rel="stylesheet" href="/css/foxsay.css" media="screen" type="text/css">

View file

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

View file

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

View file

@ -1,18 +1,22 @@
<blockquote>如不想授权 Giscus 应用,也可以点击下方<strong>左上角数字</strong>直接跳转到 Github Discussions 进行评论。</blockquote> <% if (item.no_comment){ %>
<% if (theme.enable_comment) { %> <!-- no comment -->
<script src="https://giscus.app/client.js" <% } else { %>
data-repo="SouthFox-D/SouthFox-D.github.io" <blockquote>如不想授权 Giscus 应用,也可以点击下方<strong>左上角数字</strong>直接跳转到 Github Discussions 进行评论。</blockquote>
data-repo-id="MDEwOlJlcG9zaXRvcnkyMjg3NDM0MjQ=" <% if (theme.enable_comment) { %>
data-category="博客评论" <script src="https://giscus.app/client.js"
data-category-id="DIC_kwDODaJZAM4CA7bf" data-repo="SouthFox-D/SouthFox-D.github.io"
data-mapping="og:title" data-repo-id="MDEwOlJlcG9zaXRvcnkyMjg3NDM0MjQ="
data-reactions-enabled="0" data-category="博客评论"
data-emit-metadata="0" data-category-id="DIC_kwDODaJZAM4CA7bf"
data-input-position="top" data-mapping="og:title"
data-theme="dark_dimmed" data-reactions-enabled="0"
data-lang="zh-CN" data-emit-metadata="0"
crossorigin="anonymous" data-input-position="top"
async> data-theme="dark_dimmed"
</script> data-lang="zh-CN"
<noscript>Enable JavaScript to view the comments.</a></noscript> crossorigin="anonymous"
async>
</script>
<noscript>Enable JavaScript to view the comments.</a></noscript>
<% } %>
<% } %> <% } %>