mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-22 05:55:42 -05:00
24 lines
902 B
Markdown
24 lines
902 B
Markdown
---
|
|
title: FolderPage
|
|
tags:
|
|
- plugin/pageType
|
|
---
|
|
|
|
This plugin is a page type plugin that generates index pages for folders, creating a listing page for each folder that contains multiple content files. See [[folder and tag listings]] for more information.
|
|
|
|
Example: [[advanced/|Advanced]]
|
|
|
|
> [!note]
|
|
> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page.
|
|
|
|
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: Page Type
|
|
- Function name: `ExternalPlugin.FolderPage()`.
|
|
- Source: [`quartz-community/folder-page`](https://github.com/quartz-community/folder-page)
|
|
- Install: `npx quartz plugin add github:quartz-community/folder-page`
|