mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-07 08:15:58 +00:00
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
13 lines
433 B
HTML
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 }}">«</a></li>
|
|
{{ end }}
|
|
{{ if .Paginator.HasNext }}
|
|
<li class="page-item"><a class="page-link" href="{{ .Paginator.Next.URL }}">»</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
{{ end }}
|