Modules

sitemap
sitemap

Powerfully flexible XML Sitemaps that integrate seamlessly.

@nuxtjs/sitemap

NPM versionNPM DownloadsGitHub stars

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt. Previously nuxt-simple-sitemap.


Status: v5 Released ๐ŸŽ‰
Please report any issues ๐Ÿ›
Made possible by my Sponsor Program ๐Ÿ’–
Follow me @harlan_zw ๐Ÿฆ โ€ข Join Discord for help

Features

  • ๐ŸŒด Single /sitemap.xml or multiple /posts-sitemap.xml, /pages-sitemap.xml
  • ๐Ÿ“Š Fetch your sitemap URLs from anywhere
  • ๐Ÿ˜Œ Automatic lastmod, image discovery and best practice sitemaps
  • ๐Ÿ”„ SWR caching, route rules support
  • ๐ŸŽจ Debug using the Nuxt DevTools integration or the XML Stylesheet
  • ๐Ÿค Integrates seamlessly with Nuxt I18n and Nuxt Content

Installation

๐Ÿ’ก Need a complete SEO solution for Nuxt? Check out Nuxt SEO.

๐Ÿ’ก Using Nuxt 2? Use the nuxt-community/sitemap-module docs.

  1. Install @nuxtjs/sitemap dependency to your project:
pnpm add -D @nuxtjs/sitemap
#
yarn add -D @nuxtjs/sitemap
#
npm install -D @nuxtjs/sitemap
  1. Add it to your modules section in your nuxt.config:
export default defineNuxtConfig({
  modules: ['@nuxtjs/sitemap']
})

Documentation

๐Ÿ“– Read the full documentation for more information.

StackBlitz Demos / Reproductions

Sponsors

License

MIT License ยฉ 2022-PRESENT Harlan Wilton