Changed rendering of permalinks. This still needs work.: