Super Sitemap screenshot

Super Sitemap

Author Avatar Theme by Jasongitmail
Updated: 10 Dec 2024
188 Stars

SvelteKit sitemap focused on ease of use and making it impossible to forget to add your paths.

Categories

Overview

Super Sitemap is a tool that allows easy generation of sitemap.xml files for SvelteKit projects. It supports any rendering method and automatically collects routes from /src/routes using Vite + data for route parameters provided by the developer. It offers easy maintenance by throwing an error if data for parameterized routes is omitted, and allows exclusion of specific routes or patterns using regex patterns. The tool is well tested and built with TypeScript.

Features

  • Supports any rendering method: Super Sitemap can be used with any rendering method in SvelteKit.
  • Automatic route collection: Routes are automatically collected from /src/routes using Vite + data for route parameters.
  • Easy maintenance: Accidental omission of data for parameterized routes throws an error, requiring the developer to address it.
  • Regex pattern exclusion: Specific routes or patterns can be excluded using regex patterns.
  • Custom headers: Custom headers can be set to override default headers for the sitemap response.
  • SvelteKit’s recommended XML structure: Super Sitemap follows SvelteKit’s recommended sitemap XML structure.
  • Sitemap indexes: Sitemap index support can be enabled to handle large sitemaps.
  • i18n support: Super Sitemap supports i18n for internationalized websites.

Installation

To install Super Sitemap, you can use either npm or yarn:

npm i -D super-sitemap

or

yarn add -D super-sitemap

Summary

Super Sitemap is a powerful tool for generating sitemap.xml files for SvelteKit projects. It offers easy maintenance, regex pattern exclusion, and custom headers. With support for any rendering method and automatic route collection, Super Sitemap simplifies the process of creating sitemaps. It also supports advanced features like sitemap indexes and i18n. Overall, Super Sitemap is a valuable addition to any SvelteKit project.