mivinci / hugo-theme-minima

A clean and minimal Hugo theme.
https://mivinci.github.io/hugo-theme-minima
MIT License
130 stars 37 forks source link

paginator: missing condition where `newer` and `older` both should present #6

Closed zonggen closed 2 years ago

zonggen commented 2 years ago

Great job on the work, I've integrated minima into my github page: https://zonggen.github.io/

Though I've noticed that you were missing one condition in the paginator: https://github.com/Mivinci/hugo-theme-minima/blob/e6aa0cd091dcef658092bcacaa61f8ab8505ad54/layouts/partials/paginator.html#L4, here there should be a case when both prev and next page is present (e.g. page 2/4).