mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
b2c60ef898
This marks the launch of the new documentation website.
26 lines
686 B
HTML
26 lines
686 B
HTML
{{ 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 -}}
|
|
{{ $pages = ($pages.ByParam "Title").ByParam "Weight" -}}
|
|
{{ with $pages.Next . -}}
|
|
<a href="{{ .RelPermalink }}">
|
|
<div class="card my-1">
|
|
<div class="card-body py-2">
|
|
← {{ .Title }}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
{{ end -}}
|
|
{{ with $pages.Prev . -}}
|
|
<a class="ms-auto" href="{{ .RelPermalink }}">
|
|
<div class="card my-1">
|
|
<div class="card-body py-2">
|
|
{{ .Title }} →
|
|
</div>
|
|
</div>
|
|
</a>
|
|
{{ end -}}
|
|
</div>
|
|
{{ end -}}
|