| | |
| | | import { Root } from "hast" |
| | | import { htmlToJsx } from "../../util/jsx" |
| | | import { i18n } from "../../i18n" |
| | | import { QuartzPluginData } from "../../plugins/vfile" |
| | | |
| | | interface FolderContentOptions { |
| | | /** |
| | | * Whether to display number of folders |
| | | */ |
| | | showFolderCount: boolean |
| | | sort?: (f1: QuartzPluginData, f2: QuartzPluginData) => number |
| | | } |
| | | |
| | | const defaultOptions: FolderContentOptions = { |
| | |
| | | const classes = ["popover-hint", ...cssClasses].join(" ") |
| | | const listProps = { |
| | | ...props, |
| | | sort: options.sort, |
| | | allFiles: allPagesInFolder, |
| | | } |
| | | |