Fix rendering of content at permalink