1

Nouveau thème pour 2026

This commit is contained in:
2026-02-21 01:50:39 +01:00
parent 27dd5f86e6
commit a7f539ceb4
67 changed files with 6137 additions and 21 deletions

View File

@@ -0,0 +1,38 @@
{{- $pages := slice -}}
{{- $showDossierBeforeTitle := false -}}
{{- $showInterestingLinksMeta := false -}}
{{- $externalLinksReport := dict -}}
{{- if reflect.IsMap . -}}
{{- with .Pages -}}
{{- $pages = . -}}
{{- end -}}
{{- if isset . "ShowDossierBeforeTitle" -}}
{{- $showDossierBeforeTitle = index . "ShowDossierBeforeTitle" -}}
{{- end -}}
{{- if isset . "ShowInterestingLinksMeta" -}}
{{- $showInterestingLinksMeta = index . "ShowInterestingLinksMeta" -}}
{{- end -}}
{{- if isset . "ExternalLinksReport" -}}
{{- $externalLinksReport = index . "ExternalLinksReport" -}}
{{- end -}}
{{- end -}}
{{- if gt (len $pages) 0 -}}
<nav class="articles-list" aria-label="Liste d articles">
<ol>
{{- range $index, $page := $pages -}}
{{- $thumbnailSize := "small" -}}
{{- $positionInBlock := mod (add $index 1) 10 -}}
{{- if or (eq $positionInBlock 5) (eq $positionInBlock 6) -}}
{{- $thumbnailSize = "large" -}}
{{- end -}}
<li>{{ partial "card.html" (dict
"Page" $page
"ShowDossierBeforeTitle" $showDossierBeforeTitle
"ShowInterestingLinksMeta" $showInterestingLinksMeta
"ExternalLinksReport" $externalLinksReport
"ThumbnailSize" $thumbnailSize
) }}</li>
{{- end -}}
</ol>
</nav>
{{- end -}}