add permalink to posts