Fix linking to posts and post formatting