@nuxtjs/sitemap
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 @harlanzw š¦ ā¢ 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.
- Install
@nuxtjs/sitemap
dependency to your project:
npx nuxi@latest module add sitemap
- Add it to your
modules
section in yournuxt.config
:
export default defineNuxtConfig({
modules: ['@nuxtjs/sitemap']
})
Documentation
š Read the full documentation for more information.StackBlitz Demos / Reproductions
Sponsors
<img src='https://raw.githubusercontent.com/harlan-zw/static/main/sponsors.svg'/>