@@ -27,9 +27,9 @@ function boolToStringBool(b: boolean): string {
 | 
				
			|||||||
export default ((opts: Options) => {
 | 
					export default ((opts: Options) => {
 | 
				
			||||||
  const Comments: QuartzComponent = ({ displayClass, fileData, cfg }: QuartzComponentProps) => {
 | 
					  const Comments: QuartzComponent = ({ displayClass, fileData, cfg }: QuartzComponentProps) => {
 | 
				
			||||||
    // check if comments should be displayed according to frontmatter
 | 
					    // check if comments should be displayed according to frontmatter
 | 
				
			||||||
    const commentsFlag: boolean =
 | 
					    const disableComment: boolean =
 | 
				
			||||||
      fileData.frontmatter?.comments === true || fileData.frontmatter?.comments === "true"
 | 
					      !fileData.frontmatter?.comments || fileData.frontmatter?.comments === "false"
 | 
				
			||||||
    if (!commentsFlag) {
 | 
					    if (disableComment) {
 | 
				
			||||||
      return <></>
 | 
					      return <></>
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user