Fix post sorting on front page, and formatting on individual post page