Add NewGeneratorWithPosts factory.

- GenerateHTML function still failing.