Skip to content

Repository files navigation

@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-index

Usage

plugins:
  - source: github:quartz-community/content-index
    enabled: true
    options:
      enableSiteMap: true
      enableRSS: true

For 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

About

Quartz's default content index plugin.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages