From 7c8f22f73ed0e80ed6401ef86e3f6d446731a2d4 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 9 Mar 2017 15:48:54 -0500 Subject: [PATCH] Pagination updates --- _layouts/home.html | 2 +- example/_config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index 2d52a91..7ed50a3 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -10,7 +10,7 @@ layout: default
-

Posts

+

Posts{% if paginator.page > 1 %}{{ paginator.page | prepend: ' - Page '}}{{ paginator.total_pages | prepend: ' of ' }}{% endif %}

{% if site.gems contains 'jekyll-paginate' and page.paginate %} diff --git a/example/_config.yml b/example/_config.yml index 4415ac2..dde96ab 100644 --- a/example/_config.yml +++ b/example/_config.yml @@ -41,7 +41,7 @@ feed: path: atom.xml # Pagination - https://jekyllrb.com/docs/pagination/ -paginate: 5 +paginate: 10 paginate_path: /page:num/ # Link to specific internal pages in the navigation.