Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nuxt-modules/sitemap

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
https://github.com/nuxt-modules/sitemap

Last synced: about 2 months ago
JSON representation

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.

Awesome Lists containing this project

README

        

@nuxtjs/sitemap




NPM version
NPM Downloads
GitHub 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](https://github.com/nuxt-modules/i18n) and [Nuxt Content](https://github.com/nuxt/content)

## Installation

💡 Need a complete SEO solution for Nuxt? Check out [Nuxt SEO](https://nuxtseo.com).

💡 Using Nuxt 2? Use the [nuxt-community/sitemap-module](https://github.com/nuxt-community/sitemap-module) docs.

Install `@nuxtjs/sitemap` dependency to your project:

```bash
npx nuxi@latest module add sitemap
```

# Documentation

[📖 Read the full documentation](https://nuxtseo.com/sitemap) for more information.

### StackBlitz Demos / Reproductions

- [Dynamic URLs](https://stackblitz.com/edit/nuxt-starter-dyraxc?file=server%2Fapi%2F_sitemap-urls.ts)
- [i18n](https://stackblitz.com/edit/nuxt-starter-jwuie4?file=app.vue)
- [Manual Chunking](https://stackblitz.com/edit/nuxt-starter-umyso3?file=nuxt.config.ts)
- [Nuxt Content Document Driven](https://stackblitz.com/edit/nuxt-starter-a5qk3s?file=nuxt.config.ts)

## Sponsors





## License

MIT License © 2022-PRESENT [Harlan Wilton](https://github.com/harlan-zw)