Jacky Zhao
2025-03-12 bfa938cc62113391e4022c5a22390d3096770ded
quartz/components/pages/FolderContent.tsx
@@ -8,6 +8,8 @@
import { htmlToJsx } from "../../util/jsx"
import { i18n } from "../../i18n"
import { QuartzPluginData } from "../../plugins/vfile"
import { ComponentChildren } from "preact"
import { concatenateResources } from "../../util/resources"
interface FolderContentOptions {
  /**
@@ -78,10 +80,11 @@
      allFiles: allPagesInFolder,
    }
    const content =
    const content = (
      (tree as Root).children.length === 0
        ? fileData.description
        : htmlToJsx(fileData.filePath!, tree)
    ) as ComponentChildren
    return (
      <div class="popover-hint">
@@ -102,6 +105,6 @@
    )
  }
  FolderContent.css = style + PageList.css
  FolderContent.css = concatenateResources(style, PageList.css)
  return FolderContent
}) satisfies QuartzComponentConstructor