Felix Nie
2025-03-19 25979ab216ca2cc2539696420f23be8508d3184f
quartz/components/Comments.tsx
@@ -28,7 +28,8 @@
  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"
      typeof fileData.frontmatter?.comments !== "undefined" &&
      (!fileData.frontmatter?.comments || fileData.frontmatter?.comments === "false")
    if (disableComment) {
      return <></>
    }