Refactored the code a bunch. Added another templates for single page posts. Modified the post dictionary to hold more info. Now generates home page and single pages.