diff --git a/_config.fluid.yml b/_config.fluid.yml index 1805331..a29eccf 100644 --- a/_config.fluid.yml +++ b/_config.fluid.yml @@ -757,8 +757,8 @@ post: enable: true # 指定的插件,需要同时设置对应插件的必要参数 # 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 | discuss - type: utterances + # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discuss | mei | mei + type: mei #--------------------------- @@ -769,6 +769,15 @@ post: # Enable comments need to be set `post: comments: enable: true`, then set the corresponding comment plugin parameters below according to `type` #--------------------------- +# Mei Comments +# 自托管的评论系统(GitHub 登录 + utterances 迁移),样式跟随 Fluid 主题 +# Self-hosted comments (GitHub login + utterances migration), styled for Fluid +# See: comments/README.md +mei_comments: + # Go 评论服务地址,末尾不要加斜杠 + # Base URL of the Go comment service, without a trailing slash + server: https://comments.mmeiblog.cn + # Utterances # 基于 GitHub Issues # Based on GitHub Issues @@ -1136,8 +1145,8 @@ links: enable: true # 指定的插件,需要同时设置对应插件的必要参数 # 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 | discuss - type: utterances + # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discuss | mei + type: mei #--------------------------- diff --git a/themes/fluid/layout/_partials/comments/mei.ejs b/themes/fluid/layout/_partials/comments/mei.ejs new file mode 100644 index 0000000..f83c64c --- /dev/null +++ b/themes/fluid/layout/_partials/comments/mei.ejs @@ -0,0 +1,13 @@ +<% const mc = theme.mei_comments || {}; %> +<% if (mc.server) { %> + +
+ + + +<% } else { %> +

评论服务尚未配置,请在主题配置中设置 mei_comments.server。

+<% } %> \ No newline at end of file