diff options
author | tdro <tdro@noreply.example.com> | 2023-09-10 09:15:05 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-09-10 09:15:05 -0400 |
commit | 491546bf0f9170bbca53fc9543e4b74ed7207f37 (patch) | |
tree | 9c7de9980a4554a1ec992a07e18b40f8200c040a /themes/default/layouts/partials | |
parent | 97283879151e3a597497b4b103b7a2fa7a7fce4d (diff) | |
download | canory-491546bf0f9170bbca53fc9543e4b74ed7207f37.tar.gz canory-491546bf0f9170bbca53fc9543e4b74ed7207f37.tar.bz2 canory-491546bf0f9170bbca53fc9543e4b74ed7207f37.zip |
themes/default/layouts/partials/pagination: Increase semantics
Almost ready
Diffstat (limited to 'themes/default/layouts/partials')
-rw-r--r-- | themes/default/layouts/partials/pagination.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/themes/default/layouts/partials/pagination.html b/themes/default/layouts/partials/pagination.html index 8aec5b4..3e5acd8 100644 --- a/themes/default/layouts/partials/pagination.html +++ b/themes/default/layouts/partials/pagination.html @@ -3,8 +3,6 @@ {{- $prevTitle := "hidden" -}} {{- $nextTitle := "hidden" -}} {{- $lastTitle := "hidden" -}} - {{- $prevRel := "prev" -}} - {{- $nextRel := "next" -}} {{- $firstHref := "/" -}} {{- $prevHref := "/" -}} {{- $nextHref := "/" -}} @@ -30,23 +28,23 @@ {{- $lastTitle = "Oldest" -}} {{- end -}} - <paginator-navigation{{ if le .TotalPages 1 }} hidden="" {{ end }}> - <a href="{{ $firstHref }}" title="{{ $firstTitle }}" > + <nav{{ if le .TotalPages 1 }} hidden="" {{ end }} data-type="pagination"> + <a rel="first" href="{{ $firstHref }}" title="{{ $firstTitle }}" > <header>{{ $firstTitle }}</header> </a> - <a rel="{{ $prevRel }}" href="{{ $prevHref }}" title="{{ $prevTitle }}"> + <a rel="prev" href="{{ $prevHref }}" title="{{ $prevTitle }}"> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-left.svg")) }} <header>{{ $prevTitle }}</header> </a> - <a rel="{{ $nextRel }}" href="{{ $nextHref }}" title="{{ $nextTitle }}"> + <a rel="next" href="{{ $nextHref }}" title="{{ $nextTitle }}"> <header>{{ $nextTitle }}</header> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-right.svg")) }} </a> - <a href="{{ $lastHref }}" title="{{ $lastTitle }}"> + <a rel="last" href="{{ $lastHref }}" title="{{ $lastTitle }}" data-count="{{ .TotalPages }}"> <header>{{ $lastTitle }}</header> </a> - </paginator-navigation> + </nav> {{- end -}} |