aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/pagination.html
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2022-01-01 21:03:20 +0100
committerÓscar Nájera <hi@oscarnajera.com>2022-01-01 21:03:20 +0100
commit113d4e53416ddf42212da6f217670bdc6f0c9dd8 (patch)
tree7e9bcd4a2a274e45da5538fe67c525dfb36680de /layouts/partials/pagination.html
parente34ded01904b07456a48cf28f1a5a2d2d77a0be7 (diff)
downloadhugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.gz
hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.bz2
hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.zip
Import new minimalist design
Diffstat (limited to 'layouts/partials/pagination.html')
-rw-r--r--layouts/partials/pagination.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 16ad74e..3aa16f7 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -1,15 +1,17 @@
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
-<div class="center db tc ma4 f6">
+<nav class="flex items-center justify-center pa4 f5">
{{ if $pag.HasPrev }}
- <a href="{{ $pag.Prev.URL }}" aria-label="Previous" class="dib link dim ph3 pv2 ba br1 ttu">Newer Posts</a>
+ <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-white link grow hover-bg-light-gray hover-near-black pa2 ba">« {{ T "Prev" }}</a>
{{ end }}
-
{{ range $pag.Pagers }}
- <a href="{{ .URL }}" class="dib link dim ph3 pv2 b ba br1 {{ if eq . $pag }}bg-blue white{{ end }}">{{ .PageNumber }}</a>
+ {{ if eq . $pag }}
+ <span class= "white w3-theme ma1 pa2 ba"> {{ $pag.PageNumber }}</span>
+ {{ else }}
+ <a href="{{ .URL }}" class="db near-white link grow hover-bg-light-gray hover-near-black pa2 ba">{{ .PageNumber }}</a>
{{ end }}
-{{ if $pag.HasNext }}
- <a href="{{ $pag.Next.URL }}" aria-label="Next" class="dib link dim ph3 pv2 ba br1 ttu">Older posts</a>
-{{ end }}
-</div>
+ {{ end }}
+ {{ if $pag.HasNext }}
+ <a href="{{ $pag.Next.URL }}" rel="next" class="near-white link grow hover-bg-light-gray hover-near-black pa2 ba">{{ T "Next" }} »</a> {{ end }}
+</nav>
{{ end }}