node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

kerouac-sitemap

kerouac-sitemap

Version Build Quality Coverage Dependencies

Kerouac middleware that generates generates sitemaps, informing search engines about pages that are available for crawling

Install

$ npm install kerouac-sitemap

Usage

Simply declare a sitemap.xml page, using this middleware.

site.page('/sitemap.xml', require('kerouac-sitemap')());

If your site consists of multiple sections, each of which has a separate sitemap, a sitemap index can be generated.

site.page('/sitemap_index.xml', require('kerouac-sitemap').index());

License

The MIT License

Copyright (c) 2012-2017 Jared Hanson <http://jaredhanson.net/>

Sponsor