1

Harmoniser les asides et le rendu des articles

Closes #5

Closes #6

Closes #8

Closes #9

Closes #10
This commit is contained in:
2026-04-05 15:07:52 +02:00
parent edc6f3def5
commit 67717fdb7b
17 changed files with 279 additions and 227 deletions

View File

@@ -1,8 +1,12 @@
{{- $current := . -}}
{{- $showTitle := true -}}
{{- if reflect.IsMap . -}}
{{- with index . "Page" -}}
{{- $current = . -}}
{{- end -}}
{{- if isset . "ShowTitle" -}}
{{- $showTitle = index . "ShowTitle" -}}
{{- end -}}
{{- end -}}
{{- with $current.Params.dossier -}}
@@ -15,12 +19,14 @@
{{- $sorted = sort $sorted "Weight" "asc" -}}
{{- if gt (len $sorted) 1 -}}
<nav aria-label="Sommaire du dossier">
{{- if $showTitle -}}
<p><strong>{{ $dossierID }}</strong></p>
{{- end -}}
<ol>
{{- range $sorted -}}
<li>
<li{{ if eq .Permalink $current.Permalink }} class="is-current"{{ end }}>
{{- if eq .Permalink $current.Permalink -}}
<strong>{{ .Title }}</strong>
<strong aria-current="page">{{ .Title }}</strong>
{{- else -}}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{- end -}}