Add a function to make a post partial view.
Add a function for the index page view.