A small Pelican plugin for compiling a Netlify _redirects file

from blog heyman.info, | ↗ original
I recently re-wrote this website using Pelican, and I host it on Netlify. In the rewriting process I wanted to make sure that I could keep a few URL redirects that I had set up in my old Django app. Therefore I wrote a very simple Pelican plugin that will generate a Netlify _redirects file in the output directory. Here’s the whole plugin...