mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	@@ -27,9 +27,9 @@ function boolToStringBool(b: boolean): string {
 | 
			
		||||
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 <></>
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user