mirror of
https://github.com/SouthFox-D/SouthFox-D.github.io.git
synced 2024-11-29 01:55:19 +01:00
Compare commits
2 commits
47c8df6f87
...
cc4f8f5ab3
Author | SHA1 | Date | |
---|---|---|---|
cc4f8f5ab3 | |||
ae5e71cdd3 |
5 changed files with 19 additions and 21 deletions
2
_headers
2
_headers
|
@ -3,4 +3,4 @@
|
||||||
X-Content-Type-Options: nosniff
|
X-Content-Type-Options: nosniff
|
||||||
Referrer-Policy: no-referrer
|
Referrer-Policy: no-referrer
|
||||||
Permissions-Policy: document-domain=()
|
Permissions-Policy: document-domain=()
|
||||||
Content-Security-Policy: script-src 'self' https://giscus.app; frame-ancestors https://mantyke.icu;
|
Content-Security-Policy: script-src 'self' https://dodder.southfox.gay 'unsafe-inline'; frame-ancestors https://mantyke.icu;
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"defaultCommentOrder": "newest"
|
|
||||||
}
|
|
|
@ -1,22 +1,18 @@
|
||||||
<% if (item.no_comment){ %>
|
<% if (item.no_comment){ %>
|
||||||
<!-- no comment -->
|
<!-- no comment -->
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<blockquote>如不想授权 Giscus 应用,也可以点击下方<strong>左上角数字</strong>直接跳转到 Github Discussions 进行评论。</blockquote>
|
|
||||||
<% if (theme.enable_comment) { %>
|
<% if (theme.enable_comment) { %>
|
||||||
<script src="https://giscus.app/client.js"
|
<h4>评论</h4>
|
||||||
data-repo="SouthFox-D/SouthFox-D.github.io"
|
<div class="comment">
|
||||||
data-repo-id="MDEwOlJlcG9zaXRvcnkyMjg3NDM0MjQ="
|
<div id="cusdis_thread"
|
||||||
data-category="博客评论"
|
data-host="https://dodder.southfox.gay"
|
||||||
data-category-id="DIC_kwDODaJZAM4CA7bf"
|
data-app-id="7dbf44de-3b64-4d05-8e4d-181970039666"
|
||||||
data-mapping="og:title"
|
data-page-id="<%= page.path %>"
|
||||||
data-reactions-enabled="0"
|
data-page-url="<%= page.permalink %>"
|
||||||
data-emit-metadata="0"
|
data-page-title="<%= page.title %>"
|
||||||
data-input-position="top"
|
></div>
|
||||||
data-theme="dark_dimmed"
|
<script async defer src="https://dodder.southfox.gay/js/cusdis.es.js"></script>
|
||||||
data-lang="zh-CN"
|
<noscript>Enable JavaScript to view the comments.</a></noscript>
|
||||||
crossorigin="anonymous"
|
</div>
|
||||||
async>
|
|
||||||
</script>
|
|
||||||
<noscript>Enable JavaScript to view the comments.</a></noscript>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
|
@ -1391,3 +1391,8 @@ code {
|
||||||
-webkit-animation: wrench 3.75s ease infinite;
|
-webkit-animation: wrench 3.75s ease infinite;
|
||||||
animation: wrench 3.75s ease infinite;
|
animation: wrench 3.75s ease infinite;
|
||||||
}
|
}
|
||||||
|
#cusdis_thread {
|
||||||
|
background: #bbb;
|
||||||
|
box-shadow: 0 0 0 5px, 11px 13px 0 4px black;
|
||||||
|
border: 2px solid #000000;
|
||||||
|
}
|
||||||
|
|
2
utils.py
2
utils.py
|
@ -159,7 +159,7 @@ if __name__ == '__main__':
|
||||||
filelist = []
|
filelist = []
|
||||||
postlist = []
|
postlist = []
|
||||||
fontChar()
|
fontChar()
|
||||||
addDiscussion()
|
# addDiscussion()
|
||||||
elif opt in ('-b', '--backupimg'):
|
elif opt in ('-b', '--backupimg'):
|
||||||
filelist = []
|
filelist = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue