diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 05:22:56 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 05:22:56 +0100 |
commit | c123fc189929429164bf7268a9e7d5974884499f (patch) | |
tree | 2b33979e9df4ed36d77e23f9a9571fad4f90935c /layouts/partials/pagination.html | |
parent | ecb7569b3c047f6e6845f8a49f6eee3d6762a968 (diff) | |
download | hugo-minimalist-theme-c123fc189929429164bf7268a9e7d5974884499f.tar.gz hugo-minimalist-theme-c123fc189929429164bf7268a9e7d5974884499f.tar.bz2 hugo-minimalist-theme-c123fc189929429164bf7268a9e7d5974884499f.zip |
more translations
Diffstat (limited to 'layouts/partials/pagination.html')
-rw-r--r-- | layouts/partials/pagination.html | 35 |
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 }} |