Fix post permalink and home link