From 9cafc258c389d501f105b9ea703132273d09d82d Mon Sep 17 00:00:00 2001 From: Allen Bai Date: Sun, 15 Aug 2021 17:09:59 -0400 Subject: [PATCH] paginator: quick fix on newer/older btn Fixes: https://github.com/Mivinci/hugo-theme-minima/issues/6 Signed-off-by: Allen Bai --- assets/sass/sketch.scss | 8 ++++++++ layouts/partials/paginator.html | 14 ++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/assets/sass/sketch.scss b/assets/sass/sketch.scss index f17831e..17abfa1 100644 --- a/assets/sass/sketch.scss +++ b/assets/sass/sketch.scss @@ -164,6 +164,14 @@ margin-left: 1em; } + .ml-2 { + margin-left: 2em; + } + + .mr-2 { + margin-right: 2em; + } + .mw-6 { min-width: 6em; } diff --git a/layouts/partials/paginator.html b/layouts/partials/paginator.html index 64c9e61..08b3ab2 100644 --- a/layouts/partials/paginator.html +++ b/layouts/partials/paginator.html @@ -1,10 +1,16 @@ {{ $page := $.Paginator }} {{ if gt $page.TotalPages 1 }}
- {{ if $page.HasNext }} - Older → + {{ if $page.HasPrev }} + ← Newer {{ else }} - ← Newer + ← Newer + {{ end }} + + {{ if $page.HasNext }} + Older → + {{ else }} + Older → {{ end }}
-{{ end }} \ No newline at end of file +{{ end }}