From bd4034f8633cbb346b767a466ad5e37fea9baa7a Mon Sep 17 00:00:00 2001 From: madrilene Date: Tue, 13 Feb 2024 13:08:21 +0100 Subject: [PATCH] Bug fix: compare to actual length of items in collection. + Make pagination a component. --- src/_includes/components/pagination.njk | 26 +++++++++++++ src/_layouts/blog.njk | 52 ++++++------------------- 2 files changed, 38 insertions(+), 40 deletions(-) create mode 100644 src/_includes/components/pagination.njk diff --git a/src/_includes/components/pagination.njk b/src/_includes/components/pagination.njk new file mode 100644 index 0000000..ab341e2 --- /dev/null +++ b/src/_includes/components/pagination.njk @@ -0,0 +1,26 @@ +
+ +
\ No newline at end of file diff --git a/src/_layouts/blog.njk b/src/_layouts/blog.njk index 43cf726..dcc725d 100644 --- a/src/_layouts/blog.njk +++ b/src/_layouts/blog.njk @@ -14,14 +14,11 @@ masonry: true {% include 'svg/divider-edgy.svg' %} -
{{ content | safe }}
+
+ {{ content | safe }} +
-