aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/pagination.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2025-01-05 23:44:45 +0100
committerOscar Najera <hi@oscarnajera.com>2025-01-05 23:45:00 +0100
commit4b76a856b2841fb197acc982ed168bc52db6ea3d (patch)
treebb92327990d20b262dca7f597453c8ae7bfee16d /layouts/partials/pagination.html
parentf9e5452a0046e6e47425f0c58d438d0f573fece9 (diff)
downloadhugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.tar.gz
hugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.tar.bz2
hugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.zip
add tailwind and do some replacements
Diffstat (limited to 'layouts/partials/pagination.html')
-rw-r--r--layouts/partials/pagination.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index f8df88e..93c7b0b 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 link grow hover-bg-light-gray pa2 ba">« {{ T "prev" }}</a>
+ <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-black grow hover-bg-light-gray p-2 ba">« {{ T "prev" }}</a>
{{ end }}
{{ range $pag.Pagers }}
{{ if eq . $pag }}
- <span class= "near-white bg-gray ma1 pa2 ba"> {{ $pag.PageNumber }}</span>
+ <span class= "near-white bg-gray m-1 p-2 ba"> {{ $pag.PageNumber }}</span>
{{ else }}
- <a href="{{ .URL }}" class="db near-black link grow hover-bg-light-gray hover-near-black pa2 ba">{{ .PageNumber }}</a>
+ <a href="{{ .URL }}" class="block near-black grow 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 link grow hover-bg-light-gray pa2 ba">{{ T "next" }} »</a> {{ end }}
+ <a href="{{ $pag.Next.URL }}" rel="next" class="near-black grow hover-bg-light-gray p-2 ba">{{ T "next" }} »</a> {{ end }}
</nav>
{{ end }}