From b0fe5af776bfb226321269174e8cd379c9972f99 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 3 Jun 2018 12:05:03 +0100 Subject: [PATCH] Add post pager --- source/_partials/post-pager.html.twig | 41 +++++++++++++++++++++++++++ source/blog.html | 16 +---------- 2 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 source/_partials/post-pager.html.twig diff --git a/source/_partials/post-pager.html.twig b/source/_partials/post-pager.html.twig new file mode 100644 index 00000000..0ee96174 --- /dev/null +++ b/source/_partials/post-pager.html.twig @@ -0,0 +1,41 @@ +
+ +
diff --git a/source/blog.html b/source/blog.html index 4588ed2b..a34fe41f 100644 --- a/source/blog.html +++ b/source/blog.html @@ -36,19 +36,5 @@ use: [posts] {% endfor %} - {% if page.pagination.previous_page or page.pagination.next_page %} - - {% endif %} + {% include 'post-pager.html.twig' %} {% endblock %}