npqhugo/layouts/partials/pagination.html

33 lines
717 B
HTML
Raw Permalink Normal View History

2020-05-15 02:01:28 +08:00
{{ with $.Paginator }}
{{ if gt .TotalPages 1 }}
<ul class="pagination">
{{ with .Prev }}
<li class="page-item">
2021-12-30 01:31:28 +08:00
<a class="page-link" href="{{ .URL }}">
2020-05-15 02:01:28 +08:00
<i class="fas fa-chevron-left"></i>
</a>
</li>
{{ else }}
<li class="page-item">
<a class="grayed-out" href="javascript:void()">
<i class="fas fa-chevron-left"></i>
</a>
</li>
{{ end }}
{{ with .Next }}
<li class="page-item">
2021-12-30 01:31:28 +08:00
<a class="page-link" href="{{ .URL }}">
2020-05-15 02:01:28 +08:00
<i class="fas fa-chevron-right"></i>
</a>
</li>
{{ else }}
<li class="page-item">
<a class="grayed-out" href="javascript:void()">
<i class="fas fa-chevron-right"></i>
</a>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}