fix(comment): negate check (closes #1582) (#1586)
| | |
| | | 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 <></> |
| | | } |
| | | |