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 @@
{{- $ctx := . -}}
{{- $scratch := newScratch -}}
{{- $scratch.Set "blocks" 0 -}}
{{- range $taxonomy, $_ := $ctx.Site.Taxonomies -}}
{{- with $ctx.Page.GetTerms $taxonomy -}}
{{- $scratch.Add "blocks" 1 -}}
{{- end -}}
{{- end -}}
{{- with $ctx.Params.keywords -}}
{{- if gt (len .) 0 -}}
{{- $scratch.Add "blocks" 1 -}}
{{- end -}}
{{- end -}}
{{- if gt ($scratch.Get "blocks") 0 -}}
<section>
<details>
<summary>Taxonomies</summary>
{{- range $taxonomy, $_ := $ctx.Site.Taxonomies -}}
{{- with $ctx.Page.GetTerms $taxonomy -}}
<section>
{{- $taxonomyPage := $ctx.Site.GetPage "taxonomy" $taxonomy -}}
<h2>{{ with $taxonomyPage }}{{ .Title }}{{ else }}{{ humanize $taxonomy }}{{ end }}</h2>
{{- partial "keywords.html" . -}}
</section>
{{- end -}}
{{- end -}}
{{- with $ctx.Params.keywords -}}
{{- if gt (len .) 0 -}}
<section>
<h2>Mots-clés libres</h2>
{{- partial "keywords.html" . -}}
</section>
{{- end -}}
{{- end -}}
</details>
</section>
{{- end -}}