Files
HugoBlox-kit/wowchemy/layouts/partials/pagination.html
T
George Cushen db4dcf6541 feat: support view for course archive & custom section archives
The fullback list view for archive pages did not previously support the `view` option, instead presenting lists in one specific format.

If a user creates a custom section name (e.g. `content/prj/`) that doesn't correspond with a built-in page type, they now have the option not to use the default list view by defining `view` in the associated `_index.md` file.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2323
2021-06-06 14:07:13 +01:00

13 lines
433 B
HTML

{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<nav class="mt-1">
<ul class="pagination justify-content-center">
{{ if .Paginator.HasPrev }}
<li class="page-item"><a class="page-link" href="{{ .Paginator.Prev.URL }}">&laquo;</a></li>
{{ end }}
{{ if .Paginator.HasNext }}
<li class="page-item"><a class="page-link" href="{{ .Paginator.Next.URL }}">&raquo;</a></li>
{{ end }}
</ul>
</nav>
{{ end }}