Restructured blog generation

Instead of calling gen_homepage() and gen_posts(), generate() combines
some of both to prevent reading/parsing of Post objects and templates
twice.