Add post template
Add error handling to metalsmith task