Added a conditional that will not render the paginator partial unless the number of posts or posts with a certain tag exceeds the paginate number set in the '_data/site.js' file. This change is applied to index.njk and partials/paginator.njk.
Why?
I think this is an appropriate addition as the option to change pages shouldn't be present until the user can change pages. This eliminates unnecessary page elements, and improves the simplistic aspect.
Description
Added a conditional that will not render the paginator partial unless the number of posts or posts with a certain tag exceeds the paginate number set in the '_data/site.js' file. This change is applied to index.njk and partials/paginator.njk.
Why?
I think this is an appropriate addition as the option to change pages shouldn't be present until the user can change pages. This eliminates unnecessary page elements, and improves the simplistic aspect.
Tag Page
Page with Paginator
Page without Paginator