Update template

1. Change the order of notes and comments.
2. Separate the pagination of index and post page into different positions.