fixed post pagination

Post pagination didn't work correctly. Updated taking notes from `index.html`