diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 03:01:15 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 03:01:15 +0100 |
commit | ecb7569b3c047f6e6845f8a49f6eee3d6762a968 (patch) | |
tree | bb891a042c1ae57bb25c71bd739564e07812b6f4 /layouts/partials/pagination.html | |
parent | 9dcafb5af5332ba0a5753abf441183417880a739 (diff) | |
download | hugo-minimalist-theme-ecb7569b3c047f6e6845f8a49f6eee3d6762a968.tar.gz hugo-minimalist-theme-ecb7569b3c047f6e6845f8a49f6eee3d6762a968.tar.bz2 hugo-minimalist-theme-ecb7569b3c047f6e6845f8a49f6eee3d6762a968.zip |
transfer so partial and defaults
Diffstat (limited to 'layouts/partials/pagination.html')
-rw-r--r-- | layouts/partials/pagination.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 93c7b0b..6fdb89b 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -2,16 +2,16 @@ {{ if gt $pag.TotalPages 1 }} <nav class="flex items-center justify-center pa4 f5"> {{ if $pag.HasPrev }} - <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-black grow hover-bg-light-gray p-2 ba">« {{ T "prev" }}</a> + <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-black transition hover:scale-105 hover-bg-light-gray p-2 ba">« {{ 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 grow hover-bg-light-gray hover-near-black p-2 ba">{{ .PageNumber }}</a> + <a href="{{ .URL }}" class="block near-black transition hover:scale-105 hover-bg-light-gray hover-near-black p-2 ba">{{ .PageNumber }}</a> {{ end }} {{ end }} {{ if $pag.HasNext }} - <a href="{{ $pag.Next.URL }}" rel="next" class="near-black grow hover-bg-light-gray p-2 ba">{{ T "next" }} »</a> {{ end }} + <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> {{ end }} |