From e37d6351860020f42d2ffe4784f58700a44b8b28 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Thu, 9 Mar 2023 21:04:37 +0100 Subject: [PATCH] Some cleanup --- layouts/partials/pagination.html | 26 +++++++------------------- layouts/partials/posts_pagination.html | 14 ++++++-------- 2 files changed, 13 insertions(+), 27 deletions(-) diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 8b28942..3567021 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,20 +1,8 @@ - +{{ if .Paginator.HasPrev }} + +{{ end }} +{{ if .Paginator.HasNext }} + +{{ end }} + \ No newline at end of file diff --git a/layouts/partials/posts_pagination.html b/layouts/partials/posts_pagination.html index ee5b3cf..ed085fc 100644 --- a/layouts/partials/posts_pagination.html +++ b/layouts/partials/posts_pagination.html @@ -1,10 +1,8 @@ -{{ if or .NextInSection .PrevInSection }}
- {{ if .NextInSection }} - - {{ end }} - {{ if .PrevInSection }} - - {{ end }} -
+{{ if .NextInSection }} + {{ end }} +{{ if .PrevInSection }} + +{{ end }} + \ No newline at end of file