From 353ff6b2313ca53ea9d2fd16abe19b3450ffdccb Mon Sep 17 00:00:00 2001 From: Lete114 Date: Wed, 27 Jul 2022 10:26:24 +0800 Subject: [PATCH] =?UTF-8?q?`sparkles`=20=E6=96=B0=E5=A2=9E=20discuss=20?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 15 +++++++++++++-- layout/_partials/comments/discuss.ejs | 17 +++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 layout/_partials/comments/discuss.ejs diff --git a/_config.yml b/_config.yml index 9befff65..668dc4d0 100644 --- a/_config.yml +++ b/_config.yml @@ -723,7 +723,7 @@ post: enable: false # 指定的插件,需要同时设置对应插件的必要参数 # The specified plugin needs to set the necessary parameters at the same time - # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus + # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discuss type: disqus @@ -877,6 +877,15 @@ giscus: input-position: top lang: zh-CN +# Discuss +# 多平台、多数据库、自托管、免费开源评论系统 +# Self-hosted, small size, multi-platform, multi-database, free and open source commenting system +# See: https://discuss.js.org +discuss: + serverURLs: + path: window.location.pathname + + #--------------------------- # 归档页 # Archive Page @@ -1027,7 +1036,7 @@ links: enable: false # 指定的插件,需要同时设置对应插件的必要参数 # The specified plugin needs to set the necessary parameters at the same time - # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus + # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discuss type: disqus @@ -1086,4 +1095,6 @@ static_prefix: twikoo: https://lib.baomitu.com/twikoo/1.6.8/ + discuss: https://lib.baomitu.com/discuss/1.2.1/ + hint: https://lib.baomitu.com/hint.css/2.7.0/ diff --git a/layout/_partials/comments/discuss.ejs b/layout/_partials/comments/discuss.ejs new file mode 100644 index 00000000..5fc7ded3 --- /dev/null +++ b/layout/_partials/comments/discuss.ejs @@ -0,0 +1,17 @@ +<% if (theme.discuss && theme.discuss.serverURLs) { %> +
+ + +<% } %>