Amélioration du menu ls.

Avec notamment l'ajout de l'entrée de la section courante _index.md, et de
l'attribut aria-current quand nécessaire.
This commit is contained in:
2026-03-25 00:47:58 +01:00
parent b8a3d89e03
commit de5d7bb639
3 changed files with 24 additions and 23 deletions
+2 -6
View File
@@ -1,14 +1,10 @@
{{ partial "breadcrumb.html" . }}
{{ partial "lsmenu.html" (cond .IsNode . .CurrentSection) }}
{{ partial "lsmenu.html" . }}
<div class="cmdblock">
<p aria-hidden="true" class="prompt">
{{ if .IsNode }}
sommaire .
{{ else }}
cat {{ .LinkTitle }}
{{ end }}
cat {{ path.Base . }}
</p>
</div>
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}