<divclass="pagination-first {{ if not .ShowFirst }}disabled{{end}}">
{{ if .ShowFirst }}
<ahref="{{ .Route }}{{ if gt .FirstOffset 0 }}?offset={{ .FirstOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}{{ else }}{{ if .SearchQuery }}?q={{ .SearchQuery }}{{ end }}{{ end }}"data-page="first">{{ t "pagination.first" }}</a>
{{ else }}
{{ t "pagination.first" }}
{{ end }}
</div>
<divclass="pagination-prev {{ if not .ShowPrev }}disabled{{end}}">
{{ if .ShowPrev }}
<ahref="{{ .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>
<divclass="pagination-next {{ if not .ShowNext }}disabled{{end}}">
{{ if .ShowNext }}
<ahref="{{ .Route }}?offset={{ .NextOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}"data-page="next"rel="next">{{ t "pagination.next" }}</a>
{{ else }}
{{ t "pagination.next" }}
{{ end }}
</div>
<divclass="pagination-last {{ if not .ShowLast }}disabled{{end}}">
{{ if .ShowLast }}
<ahref="{{ .Route }}?offset={{ .LastOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}"data-page="last">{{ t "pagination.last" }}</a>