Add util module and move first helper function into it

Fix potential skipping of published posts if prior posts weren't published

Correctly parse file extension to determine post format

Fix for index.html to be saved in output_dir

(0) -4 +4 +10 tip

mercurial