Write your own blog engine, part 6
Adding features What new features can I add to this to make it more useful? Paging is one that would be immediately useful (right now I will return the most recent five posts but I have no way of getting to older ones). Comments are also necessary; I will keep them in mind for later. There are two aspects of paging: I need to return a list of links pointing to pages and I need to be able to display that page when I click on the link. A problem comes to mind: since the posts are sorted in descending order based on their date, each time I add a new post the content of all pages will change. I don't know how this affects something like search engines; you might want to use paging based on the month of the post instead. I'll start with the first part, the navigation links. I will return those using the new HTML5 nav tag: <nav> <ul> <li><a href="/Home/Index/1">1</a></li> <li><a href="/Home/Index/2">2</a...