diff --git a/_headers b/_headers index ab3f2ef..498bef1 100644 --- a/_headers +++ b/_headers @@ -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; diff --git a/giscus.json b/giscus.json new file mode 100644 index 0000000..1ab17b4 --- /dev/null +++ b/giscus.json @@ -0,0 +1,3 @@ +{ + "defaultCommentOrder": "newest" + } \ No newline at end of file diff --git a/themes/freemind/layout/_partial/post/comment_footer.ejs b/themes/freemind/layout/_partial/post/comment_footer.ejs index df18cf1..f944fa5 100644 --- a/themes/freemind/layout/_partial/post/comment_footer.ejs +++ b/themes/freemind/layout/_partial/post/comment_footer.ejs @@ -1,18 +1,22 @@ <% if (item.no_comment){ %> <% } else { %> +
如不想授权 Giscus 应用,也可以点击下方左上角数字直接跳转到 Github Discussions 进行评论。<% if (theme.enable_comment) { %> -