Refactor templates
Sort index page posts