Cao Mingjun
2024-07-10 ea92ed4f45e6e863a432447a977c33c6319423bc
quartz/components/pages/TagContent.tsx
@@ -7,6 +7,7 @@
import { htmlToJsx } from "../../util/jsx"
import { i18n } from "../../i18n"
export default ((opts?: { sort?: (f1: QuartzPluginData, f2: QuartzPluginData) => number }) => {
const numPages = 10
const TagContent: QuartzComponent = (props: QuartzComponentProps) => {
  const { tree, fileData, allFiles, cfg } = props
@@ -80,7 +81,7 @@
                      </>
                    )}
                  </p>
                  <PageList limit={numPages} {...listProps} />
                    <PageList limit={numPages} {...listProps} sort={opts?.sort} />
                </div>
              </div>
            )
@@ -110,4 +111,5 @@
}
TagContent.css = style + PageList.css
export default (() => TagContent) satisfies QuartzComponentConstructor
  return TagContent
}) satisfies QuartzComponentConstructor