diff --git a/components/Comment.js b/components/Comment.js index ba0d4256..fce7078d 100644 --- a/components/Comment.js +++ b/components/Comment.js @@ -121,6 +121,11 @@ const Comment = ({ frontMatter, className }) => { return null } + // 特定文章关闭评论区 + if (frontMatter?.comment === 'Hide') { + return null + } + return (