From a727b57e46355ae59ac6f26078c29f0d24b2b841 Mon Sep 17 00:00:00 2001
From: Jules Kreuer <25013642+not-a-feature@users.noreply.github.com>
Date: Thu, 21 Nov 2024 00:29:43 +0000
Subject: [PATCH] docs(hosting): add apache config example (#1608)

---
 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