Skip to content

shevky/plugin-sitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shevky Plugin: Sitemap

Generate sitemap.xml for Shevky sites. The plugin collects published pages, optionally includes paginated listings and configured collections, then writes the sitemap into dist/sitemap.xml.

Features

  • Builds sitemap.xml during content:ready
  • Optional pagination URLs (when seo.includePaging is enabled)
  • Optional collection URLs (when seo.includeCollections is enabled)
  • Generates absolute URLs based on identity.url

Installation

npm i @shevky/plugin-sitemap

Usage

Add the plugin to your config:

{
  "identity": {
    "url": "https://example.com"
  },
  "pluginConfigs": {
    "shevky-sitemap": {
      "sitemapFilename": "sitemap.xml"
    }
  },
  "seo": {
    "includePaging": true,
    "includeCollections": true
  },
  "plugins": [
    "@shevky/plugin-sitemap"
  ]
}

The sitemap will be generated at:

dist/sitemap.xml

Config Options

  • sitemapFilename: Output file name (default: sitemap.xml)

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published