Patch to avoid including drafts in generated content thus the 'all' index.
Respect offline flag in item render and set offline flag on static pages.
Make path normalisation function take care of curly brackets.
Use a context manager when writing files in the static generator.