extracting post info into separate template