2020-12-07 21:34:22 +01:00
|
|
|
<nav class="blog-pagination" aria-label="Pagination">
|
2020-12-07 13:13:09 +01:00
|
|
|
{{ if and (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
2020-12-28 22:28:31 +01:00
|
|
|
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" rel="next" role="button">Older</a>
|
|
|
|
<a class="btn btn-outline-primary" href="{{ .Paginator.Prev.URL }}" rel="prev" role="button">Newer</a>
|
2020-12-07 13:13:09 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ if and (.Paginator.HasPrev) (not .Paginator.HasNext) }}
|
2020-12-28 22:28:31 +01:00
|
|
|
<a class="btn btn-outline-secondary disabled" href="#" tabindex="-1" aria-disabled="true">Older</a>
|
|
|
|
<a class="btn btn-outline-primary" href="{{ .Paginator.Prev.URL }}" rel="prev" role="button">Newer</a>
|
2020-12-07 13:13:09 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ if and (not .Paginator.HasPrev) (.Paginator.HasNext) }}
|
2020-12-28 22:28:31 +01:00
|
|
|
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" rel="next" role="button">Older</a>
|
|
|
|
<a class="btn btn-outline-secondary disabled" href="#" tabindex="-1" aria-disabled="true">Newer</a>
|
2020-12-07 13:13:09 +01:00
|
|
|
{{ end }}
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
{{- /* vim: set ts=2 sw=2 et: */}}
|