Harmoniser les asides et le rendu des articles
Closes #5 Closes #6 Closes #8 Closes #9 Closes #10
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user