Francisco Gama T. R.
2024-12-03 5a5ef670fee5f5f65981801a7ec9c2e563fe99ad
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 <></>
    }