layouts/partials/pagination.html: Fix style
Bring up to date with current Bootstrap v5 example.
This commit is contained in:
parent
64aa207e59
commit
48f56114be
@ -1,14 +1,14 @@
|
|||||||
<nav class="blog-pagination">
|
<nav class="blog-pagination" aria-label="Pagination">
|
||||||
{{ if and (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
{{ if and (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||||
<a class="btn btn-outline-primary" href="{{ .Paginator.Prev.URL }}" rel="prev" role="button">Older</a>
|
<a class="btn btn-outline-primary" href="{{ .Paginator.Prev.URL }}" rel="prev" role="button">Older</a>
|
||||||
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" rel="next" role="button">Newer</a>
|
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" rel="next" role="button">Newer</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (.Paginator.HasPrev) (not .Paginator.HasNext) }}
|
{{ if and (.Paginator.HasPrev) (not .Paginator.HasNext) }}
|
||||||
<a class="btn btn-outline-primary" href="{{ .Paginator.Prev.URL }}" rel="prev" role="button">Older</a>
|
<a class="btn btn-outline-primary" href="{{ .Paginator.Prev.URL }}" rel="prev" role="button">Older</a>
|
||||||
<a class="btn btn-outline-primary disabled" href="#" role="button" aria-disabled="true">Newer</a>
|
<a class="btn btn-outline-secondary disabled" href="#" tabindex="-1" aria-disabled="true">Newer</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (not .Paginator.HasPrev) (.Paginator.HasNext) }}
|
{{ if and (not .Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||||
<a class="btn btn-outline-primary disabled" href="#" role="button" aria-disabled="true">Older</a>
|
<a class="btn btn-outline-secondary disabled" href="#" tabindex="-1" aria-disabled="true">Older</a>
|
||||||
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" rel="next" role="button">Newer</a>
|
<a class="btn btn-outline-primary" href="{{ .Paginator.Next.URL }}" rel="next" role="button">Newer</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user