title: Run custom script before generating static HTML using Pelican
body: <p>I'm using Pelican to generate a static website. I want to run a custom Python script during the build process before the website content is generated in the <code>output</code> folder. This script is primarily to do some text replacement via regex parsing. Can someone educate me how this can be achieved (if at all)?</p>