From 1a4cfa606f085fab115c578d8c97023b0641676d Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 19 Nov 2024 05:36:08 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 3 updates (#1600)
---
quartz/components/Comments.tsx | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/quartz/components/Comments.tsx b/quartz/components/Comments.tsx
index 5f379a1..5f29860 100644
--- a/quartz/components/Comments.tsx
+++ b/quartz/components/Comments.tsx
@@ -27,9 +27,9 @@
export default ((opts: Options) => {
const Comments: QuartzComponent = ({ displayClass, fileData, cfg }: QuartzComponentProps) => {
// check if comments should be displayed according to frontmatter
- const commentsFlag: boolean =
- fileData.frontmatter?.comments === true || fileData.frontmatter?.comments === "true"
- if (!commentsFlag) {
+ const disableComment: boolean =
+ !fileData.frontmatter?.comments || fileData.frontmatter?.comments === "false"
+ if (disableComment) {
return <></>
}
--
Gitblit v1.10.0