From 2aac704812f9e28a604e19e913868ca3b97fe764 Mon Sep 17 00:00:00 2001 From: David Fischer Date: Mon, 4 Nov 2024 21:35:42 +0100 Subject: [PATCH] chore(prettier): run --- docs/features/comments.md | 2 +- quartz/components/Comments.tsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/features/comments.md b/docs/features/comments.md index f80f89d8c..f17060b02 100644 --- a/docs/features/comments.md +++ b/docs/features/comments.md @@ -125,4 +125,4 @@ Quartz can conditionally display the comment box based on a field `comments` in title: Comments enabled here! comments: true --- -``` \ No newline at end of file +``` diff --git a/quartz/components/Comments.tsx b/quartz/components/Comments.tsx index 21652430d..9c734fd1b 100644 --- a/quartz/components/Comments.tsx +++ b/quartz/components/Comments.tsx @@ -28,8 +28,7 @@ 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 - if ((opts.respectFrontmatter ?? false) && - !(fileData.frontmatter?.comments ?? false)) { + if ((opts.respectFrontmatter ?? false) && !(fileData.frontmatter?.comments ?? false)) { return null } @@ -54,7 +53,7 @@ export default ((opts: Options) => { } // make sure we actually need to load the script - if(Comments != null) { + if (Comments != null) { Comments.afterDOMLoaded = script }