added a map of pages.
replaced generatePage and generateCategory with generateContent