aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/pagination.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/pagination.html')
-rw-r--r--layouts/partials/pagination.html35
1 files changed, 26 insertions, 9 deletions
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 6fdb89b..7e5eeb3 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -1,17 +1,34 @@
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
-<nav class="flex items-center justify-center pa4 f5">
+ <nav class="flex items-center justify-center p-8">
{{ if $pag.HasPrev }}
- <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-black transition hover:scale-105 hover-bg-light-gray p-2 ba">« {{ T "prev" }}</a>
+ <a
+ href="{{ $pag.Prev.URL }}"
+ rel="prev"
+ class="text-black transition hover:scale-105 hover:bg-gray-100 p-2 border"
+ >« {{ T "prev" }}</a
+ >
{{ end }}
{{ range $pag.Pagers }}
- {{ if eq . $pag }}
- <span class= "near-white bg-gray m-1 p-2 ba"> {{ $pag.PageNumber }}</span>
- {{ else }}
- <a href="{{ .URL }}" class="block near-black transition hover:scale-105 hover-bg-light-gray hover-near-black p-2 ba">{{ .PageNumber }}</a>
- {{ end }}
+ {{ if eq . $pag }}
+ <span class="text-white bg-gray-400 mx-1 p-2 border">
+ {{ $pag.PageNumber }}</span
+ >
+ {{ else }}
+ <a
+ href="{{ .URL }}"
+ class="block text-black transition hover:scale-105 hover:bg-gray-100 p-2 border"
+ >{{ .PageNumber }}</a
+ >
+ {{ end }}
{{ end }}
{{ if $pag.HasNext }}
- <a href="{{ $pag.Next.URL }}" rel="next" class="near-black transition hover:scale-105 hover-bg-light-gray p-2 ba">{{ T "next" }} »</a> {{ end }}
-</nav>
+ <a
+ href="{{ $pag.Next.URL }}"
+ rel="next"
+ class="text-black transition hover:scale-105 hover:bg-gray-100 p-2 border"
+ >{{ T "next" }} »</a
+ >
+ {{ end }}
+ </nav>
{{ end }}