format display of post detail