Fix inconsistent permalink with redirect
Port Octopress task for making new post template