@quartz-community/content-index
v0.1.0
Published
Content index emitter plugin for Quartz. Generates sitemap, RSS feed, and content index JSON.
Readme
@quartz-community/content-index
Generates a sitemap, RSS feed, and content index JSON for full-text search.
Installation
npx quartz plugin add github:quartz-community/content-indexUsage
plugins:
- source: github:quartz-community/content-index
enabled: true
options:
enableSiteMap: true
enableRSS: trueFor advanced use cases, you can override in TypeScript:
import * as ExternalPlugin from "./.quartz/plugins";
ExternalPlugin.ContentIndex({
enableSiteMap: true,
enableRSS: true,
rssLimit: 10,
rssFullHtml: false,
rssSlug: "index",
includeEmptyFiles: true,
});Configuration
| Option | Type | Default | Description |
| ------------------- | --------- | --------- | ----------------------------------------------------- |
| enableSiteMap | boolean | true | Whether to generate a sitemap.xml file. |
| enableRSS | boolean | true | Whether to generate an RSS feed. |
| rssLimit | number | 10 | Maximum number of items to include in the RSS feed. |
| rssFullHtml | boolean | false | Whether to include full HTML content in the RSS feed. |
| rssSlug | string | "index" | The slug for the RSS feed file. |
| includeEmptyFiles | boolean | true | Whether to include empty files in the content index. |
Documentation
See the Quartz documentation for more information.
License
MIT
