1

Bloc "Pour aller plus loin"

This commit is contained in:
2026-04-05 00:14:23 +02:00
parent 7592c9cace
commit adcb370623
19 changed files with 204 additions and 168 deletions

View File

@@ -0,0 +1,27 @@
{{- $title := "" -}}
{{- $class := "" -}}
{{- $pages := slice -}}
{{- $showDossierBeforeTitle := false -}}
{{- if reflect.IsMap . -}}
{{- with .Title -}}
{{- $title = . -}}
{{- end -}}
{{- with .Class -}}
{{- $class = . -}}
{{- end -}}
{{- with .Pages -}}
{{- $pages = . -}}
{{- end -}}
{{- if isset . "ShowDossierBeforeTitle" -}}
{{- $showDossierBeforeTitle = index . "ShowDossierBeforeTitle" -}}
{{- end -}}
{{- end -}}
{{- if and (ne $title "") (gt (len $pages) 0) -}}
<section class="article-aside-block article-page-links{{ with $class }} {{ . }}{{ end }}">
<h2>{{ $title }}</h2>
{{- partial "articles-list.html" (dict
"Pages" $pages
"ShowDossierBeforeTitle" $showDossierBeforeTitle
) -}}
</section>
{{- end -}}