added template
added lowercase title
added the correct permalink for each post