portails/layouts/partials/main/docs-navigation.html

24 lines
619 B
HTML
Raw Normal View History

2020-04-15 15:48:16 +02:00
{{ if or .Prev .Next -}}
<div class="docs-navigation d-flex justify-content-between">
<!-- https://www.feliciano.tech/blog/custom-sort-hugo-single-pages/ -->
{{ $pages := where site.RegularPages "Section" .Section -}}
{{ with $pages.Next . -}}
<a href="{{ .Permalink }}">
2020-11-04 08:26:58 +01:00
<div class="card my-1">
2020-04-15 15:48:16 +02:00
<div class="card-body py-2">
&larr; {{ .Title }}
</div>
</div>
</a>
{{ end -}}
{{ with $pages.Prev . -}}
<a class="ml-auto" href="{{ .Permalink }}">
2020-11-04 08:26:58 +01:00
<div class="card my-1">
2020-04-15 15:48:16 +02:00
<div class="card-body py-2">
{{ .Title }} &rarr;
</div>
</div>
</a>
{{ end -}}
</div>
{{ end -}}