ageitgey / amplify

A Jekyll html theme in the vague style of Medium.com built using Google AMP
https://cdn.ampproject.org/c/s/ageitgey.github.io/amplify/2016/03/08/example-post.html
Other
1.86k stars 166 forks source link

Try centering pagination #8

Closed neizod closed 8 years ago

neizod commented 8 years ago

In the pagination area. If you are at first page, or last page, text "Page x of y" is not align to the center of page, i.e.

       ← Older posts  Page 1 of 3
← Older posts  Page 2 of 3  Newer posts →
       Page 3 of 3  Newer posts →

I think it would be more beautify if we could render it in the same position of every page, i.e.

← Older posts  Page 1 of 3
← Older posts  Page 2 of 3  Newer posts →
               Page 3 of 3  Newer posts →

My pull request will write down ← Older posts and Newer posts → instead of not write it at all, then use CSS opacity to hide it if you shouldn't click on the link (if you're on first or last page).

ageitgey commented 8 years ago

Thanks!