nuxt-simple-sitemap
Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
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 more complete SEO solution for Nuxt? This module is included as part of Nuxt SEO.
- Install
nuxt-simple-sitemap
dependency to your project:
yarn add -D nuxt-simple-sitemap
npm install -D nuxt-simple-sitemap
pnpm i -D nuxt-simple-sitemap
- Add it to your
modules
section in your nuxt.config
:
export default defineNuxtConfig({
modules: ['nuxt-simple-sitemap']
})
Documentation
📖 Read the full documentation for more information.
StackBlitz Demos / Reproductions
License
MIT License © 2022-PRESENT Harlan Wilton