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,17 @@
{{- $allSections := where .Site.Pages "Kind" "section" -}}
{{- $allSections = where $allSections "RelPermalink" "!=" "/" -}}
{{- $leafSections := slice -}}
{{- range $allSections -}}
{{- if eq (len .Sections) 0 -}}
{{- $leafSections = $leafSections | append . -}}
{{- end -}}
{{- end -}}
{{- $lastMod := .Site.Lastmod | time.Format "02/01/2006" -}}
<section class="site-stats">
<h2>Statistiques</h2>
<ul>
<li><span>Articles publiés</span><strong>{{ len .Site.RegularPages }}</strong></li>
<li><span>Thématiques</span><strong>{{ len $leafSections }}</strong></li>
<li><span>Dernière mise à jour</span><strong>{{ $lastMod }}</strong></li>
</ul>
</section>