A script to generate sitemap.xml with shell

Published on 2025-03-16 by Ruben Angell

I'm using a slightly customized version of makesite.py to generate this website.

The python script doesn't generate a sitemap.xml file. For all intents and purposes, that's not necessary for a site this small, but if you do need one and would like to do that with standard unix-tools available on Linux and the *BSDs, here's a simple script for it. It's lightly modified from the ssg script, another very nice static site generator, by the way.

Note that _site here is the subfolder where the static files end up after being generated.

Open the script as a text file