Added blog-wide settings, moved HTML logic for main page to template.