mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-31 00:34:05 -06:00
chore(prettier): run
This commit is contained in:
parent
2bab23f64e
commit
2aac704812
@ -28,8 +28,7 @@ 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
|
||||||
if ((opts.respectFrontmatter ?? false) &&
|
if ((opts.respectFrontmatter ?? false) && !(fileData.frontmatter?.comments ?? false)) {
|
||||||
!(fileData.frontmatter?.comments ?? false)) {
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +53,7 @@ export default ((opts: Options) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make sure we actually need to load the script
|
// make sure we actually need to load the script
|
||||||
if(Comments != null) {
|
if (Comments != null) {
|
||||||
Comments.afterDOMLoaded = script
|
Comments.afterDOMLoaded = script
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user