Jacky Zhao
2024-12-27 c91cf97f99d527264d81560f1d311f7c2889a41d
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 <></>
    }