TiddlyWiki5 plugin to generate sitemap.xml (http://www.sitemaps.org/protocol.html).
It works in the browser but its primary use case is for generating a sitemap.xml for static sites using something similar to the following when running TiddlyWiki under node.js:
tiddlywiki --rendertiddlers [!is[system]] statictiddler.html static text/plain --rendertiddler sitemap sitemap.xml text/plain
The rest of this document presumes familiarity with TiddlyWiki5 (TW) and node.js (node).
The following presumes you are running TW under node:
http://dullroar.com/
to your own site's URL. Note that
the ending /
is required.plugins
array has dullroar/sitemap
in it, e.g.,
"plugins": ["dullroar/sitemap"],
.sitemap
uses the following TW filter to select tiddlers for the feed:
[!is[system]!tag[static]!title[Table of Contents]!sort[modifed]]
This basically says:
So, the net of all that is that any tiddlers you create (and not tagged "static") will be placed in the sitemap.
To generate the sitemap for a static site, I use a command similar to (all on one line):
tiddlywiki --rendertiddlers [!is[system]!tag[static]] statictiddler.html static text/plain --rendertiddler $:/core/templates/static.template.css static/static.css text/plain --rendertiddler sitemap sitemap.xml text/plain
If you want to use this in-browser, you can build a TW using the following command under node:
tiddlywiki --build index
The resulting index.html file in the output directory will have the plugin installed. You can navigate to
the sitemap tiddler under Shadows, or once you've opened the file with index.html#sitemap
.
Or you can simply run the TW under node:
tiddlywiki --verbose --server 8080 $:/core/save/lazy-images text/plain text/html Jim
And then navigate directly to the feed tiddler using http://localhost:8080/#sitemap.
Built for TiddlyWiki5 by Jeremy Ruston [@Jermolene], https://github.com/Jermolene/TiddlyWiki5, possibly the coolest thing you can do with a browser.