mirror of
https://github.com/miniflux/v2.git
synced 2024-08-30 08:07:20 +02:00
While this is widely documented for SEO reason, it also helps for accessibility. Notably, if you are using tools like Vimium to browse using only the keyboard, these hints help to select the links. It's all the more useful when the text is not in English.
20 lines
816 B
HTML
20 lines
816 B
HTML
{{ define "pagination" }}
|
|
<div class="pagination">
|
|
<div class="pagination-prev">
|
|
{{ if .ShowPrev }}
|
|
<a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}{{ else }}{{ if .SearchQuery }}?q={{ .SearchQuery }}{{ end }}{{ end }}" data-page="previous" rel="prev">{{ t "pagination.previous" }}</a>
|
|
{{ else }}
|
|
{{ t "pagination.previous" }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
<div class="pagination-next">
|
|
{{ if .ShowNext }}
|
|
<a href="{{ .Route }}?offset={{ .NextOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}" data-page="next" rel="next">{{ t "pagination.next" }}</a>
|
|
{{ else }}
|
|
{{ t "pagination.next" }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|