I added an RSS feed to this “blog”, again using Python’s excellent
lxml module. This ended up being really convenient because of the way
I was already using lxml to generate the articles from
markdown. There’s a method
.text_content() on the lxml html nodes,
so I can already take the marked up article content and extract the
text content from it. Thus, the generator script (lovingly called
generate.py) ends up being a thin wrapper that generates HTML from
the markdown files, then does some element tree gymnastics, and
magically out of this comes an HTML element tree that’s rendered as
the blog content itself, and an RSS element tree.
tl;dr magic happens and then blog.