Create partial for code to show posts to prevent duplicating since its used on index and user page.