docs + chore: cleanup custom sort ordering for folder + tag listings, add docs

This commit is contained in:
Jacky Zhao 2024-07-09 17:55:19 -07:00
parent ea92ed4f45
commit 965425d54d
8 changed files with 43 additions and 24 deletions
docs/plugins

View file

@ -11,10 +11,12 @@ Example: [[advanced/|Advanced]]
> [!note]
> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page.
This plugin has no configuration options.
The pages are displayed using the `defaultListPageLayout` in `quartz.layouts.ts`. For the content, the `FolderContent` component is used. If you want to modify the layout, you must edit it directly (`quartz/components/pages/FolderContent.tsx`).
This plugin accepts the following configuration options:
- `sort`: A function of type `(f1: QuartzPluginData, f2: QuartzPluginData) => number{:ts}` used to sort entries. Defaults to sorting by date and tie-breaking on lexographical order.
## API
- Category: Emitter