From 9c85c86c652c4580e90364f13a8723d7364c2ad6 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 30 Nov 2024 03:12:24 +0700 Subject: [PATCH] fix(comments): show comments by default --- quartz/components/Comments.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quartz/components/Comments.tsx b/quartz/components/Comments.tsx index 5f29860c2..4a6fe9aae 100644 --- a/quartz/components/Comments.tsx +++ b/quartz/components/Comments.tsx @@ -1,5 +1,5 @@ -import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" import { classNames } from "../util/lang" +import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" // @ts-ignore import script from "./scripts/comments.inline" @@ -27,8 +27,7 @@ function boolToStringBool(b: boolean): string { export default ((opts: Options) => { const Comments: QuartzComponent = ({ displayClass, fileData, cfg }: QuartzComponentProps) => { // check if comments should be displayed according to frontmatter - const disableComment: boolean = - !fileData.frontmatter?.comments || fileData.frontmatter?.comments === "false" + const disableComment: boolean = fileData.frontmatter?.comments === "false" if (disableComment) { return <> }