diff options
Diffstat (limited to 'layouts/partials/list/pagination.html')
| -rw-r--r-- | layouts/partials/list/pagination.html | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/layouts/partials/list/pagination.html b/layouts/partials/list/pagination.html deleted file mode 100644 index dfe8178..0000000 --- a/layouts/partials/list/pagination.html +++ /dev/null @@ -1,28 +0,0 @@ -{{- $paginator := . }} -{{- if gt $paginator.TotalPages 1 }} -<nav class="pagination" aria-label="{{ lang.Translate "page_navigation" | default "Page navigation" }}"> - {{- if $paginator.HasPrev }} - <a href="{{ $paginator.Prev.URL }}" - class="pagination__link" - rel="prev" - aria-label="{{ lang.Translate "page_previous" | default "Previous page" }}" - > - ← {{ lang.Translate "previous" | default "Previous" }} - </a> - {{- end }} - - <p class="pagination__current"> - {{ lang.Translate "page_position" $paginator.PageNumber $paginator.TotalPages | default (printf "Page %d of %d" $paginator.PageNumber $paginator.TotalPages) }} - </p> - - {{- if $paginator.HasNext }} - <a href="{{ $paginator.Next.URL }}" - class="pagination__link" - rel="next" - aria-label="{{ lang.Translate "page_next" | default "Next page" }}" - > - {{ lang.Translate "next" | default "Next" }} → - </a> - {{- end }} -</nav> -{{- end }} |
