mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
chore(prettier): run
This commit is contained in:
parent
2bab23f64e
commit
2aac704812
@ -125,4 +125,4 @@ Quartz can conditionally display the comment box based on a field `comments` in
|
||||
title: Comments enabled here!
|
||||
comments: true
|
||||
---
|
||||
```
|
||||
```
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user