adding permalinks to posts