Revert "site/change comment service"

This reverts commit ae5e71cdd3.
This commit is contained in:
SouthFox 2023-05-20 18:26:25 +08:00
parent dfc50aa32e
commit a086474bff
5 changed files with 21 additions and 19 deletions

View file

@ -3,4 +3,4 @@
X-Content-Type-Options: nosniff
Referrer-Policy: no-referrer
Permissions-Policy: document-domain=()
Content-Security-Policy: script-src 'self' https://dodder.southfox.gay 'unsafe-inline'; frame-ancestors https://mantyke.icu;
Content-Security-Policy: script-src 'self' https://giscus.app; frame-ancestors https://mantyke.icu;

3
giscus.json Normal file
View file

@ -0,0 +1,3 @@
{
"defaultCommentOrder": "newest"
}

View file

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

View file

@ -1391,8 +1391,3 @@ code {
-webkit-animation: wrench 3.75s ease infinite;
animation: wrench 3.75s ease infinite;
}
#cusdis_thread {
background: #c6c6c6;
box-shadow: 0 0 0 5px, 11px 13px 0 4px black;
border: 2px solid #000000;
}

View file

@ -159,7 +159,7 @@ if __name__ == '__main__':
filelist = []
postlist = []
fontChar()
# addDiscussion()
addDiscussion()
elif opt in ('-b', '--backupimg'):
filelist = []