mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
@@ -121,6 +121,11 @@ const Comment = ({ frontMatter, className }) => {
|
||||
return null
|
||||
}
|
||||
|
||||
// 特定文章关闭评论区
|
||||
if (frontMatter?.comment === 'Hide') {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
key={frontMatter?.id}
|
||||
|
||||
@@ -94,6 +94,7 @@ export default async function getPageProperties(
|
||||
properties.type = properties.type?.[0] || ''
|
||||
properties.status = properties.status?.[0] || ''
|
||||
properties.category = properties.category?.[0] || ''
|
||||
properties.comment = properties.comment?.[0] || ''
|
||||
|
||||
// 映射值:用户个性化type和status字段的下拉框选项,在此映射回代码的英文标识
|
||||
mapProperties(properties)
|
||||
|
||||
Reference in New Issue
Block a user