boil-sitemap
Command-line tool to generate a sitemap.xml from static files.
Install
$ npm install -g boil-sitemap
Usage
The files
argument accepts globstar-style **
patterns. The default changefreq
is daily
.
$ sitemap --prefix <url-prefix> [--changefreq <freq>] <files>
Example
The command:
$ sitemap --prefix http://example.com/ --changefreq daily mysite/**/*.html
Outputs something like:
http://example.com/2014/02/02/some-article.html 2014-05-22T08:49:38.000Z daily http://example.com/2014/02/08/another-article.html 2014-05-22T08:49:38.000Z daily http://example.com/index.html 2014-05-22T08:49:38.000Z daily