1

Utiliser la date du dernier commit Git dans le footer

This commit is contained in:
2026-04-03 01:35:44 +02:00
parent ef85b23a82
commit b4f83a4079
2 changed files with 3 additions and 2 deletions

View File

@@ -48,10 +48,10 @@
</li>
{{- end -}}
</ul>
{{- with .Lastmod -}}
{{- with .GitInfo -}}
<p>
Dernière modification de cette page :
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ printf "%s à %s" (. | time.Format ":date_long") (. | time.Format "15:04") }}</time>
<time datetime="{{ .CommitDate.Format "2006-01-02T15:04:05Z07:00" }}">{{ printf "%s à %s" (.CommitDate | time.Format ":date_long") (.CommitDate | time.Format "15:04") }}</time>
</p>
{{- end -}}
</nav>