1

Ajout de la pagination pour les dossiers

This commit is contained in:
2025-11-26 22:58:13 +01:00
parent 15b1df425b
commit bfdbed8436
4 changed files with 21 additions and 14 deletions

View File

@@ -22,7 +22,7 @@
{{- end -}}
<nav class="pagination" aria-label="Sommaire du dossier">
{{- if ge $index 1 }}
<a class="prev" href="{{ $prev.RelPermalink }}" title="Page précédente"></a>
<a class="prev" href="{{ $prev.RelPermalink }}" title="Page précédente : {{ $prev.Title }}"></a>
{{- else }}
<span class="disabled prev"></span>
{{- end }}
@@ -43,7 +43,7 @@
</details>
{{- if lt (add $index 1) (len $sorted) }}
<a class="next" href="{{ $next.RelPermalink }}" title="Page suivante"></a>
<a class="next" href="{{ $next.RelPermalink }}" title="Page suivante : {{ $next.Title }}"></a>
{{- else }}
<span class="disabled next"></span>
{{- end }}

View File

@@ -26,6 +26,12 @@
{{ .Content }}
<aside>
<div class="panel">
{{- partial "dossier-summary" . -}}
</div>
</aside>
{{- partial "asides/keywords.html" . }}
</article>
</main>