added the correct permalink for each post