miniflux/template/html/common/entry_pagination.html

20 lines
751 B
HTML
Raw Normal View History

2017-11-20 06:10:04 +01:00
{{ define "entry_pagination" }}
<div class="pagination">
<div class="pagination-prev">
{{ if .prevEntry }}
<a href="{{ .prevEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title="{{ .prevEntry.Title }}" data-page="previous" rel="prev">{{ t "pagination.previous" }}</a>
2017-11-20 06:10:04 +01:00
{{ else }}
{{ t "pagination.previous" }}
2017-11-20 06:10:04 +01:00
{{ end }}
</div>
<div class="pagination-next">
{{ if .nextEntry }}
<a href="{{ .nextEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title="{{ .nextEntry.Title }}" data-page="next" rel="next">{{ t "pagination.next" }}</a>
2017-11-20 06:10:04 +01:00
{{ else }}
{{ t "pagination.next" }}
2017-11-20 06:10:04 +01:00
{{ end }}
</div>
</div>
{{ end }}