Adjust template for main page and post