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

@@ -5,6 +5,7 @@ title: Richard Dern
copyright: "© Richard Dern" copyright: "© Richard Dern"
disableHugoGeneratorInject: true disableHugoGeneratorInject: true
enableEmoji: true enableEmoji: true
enableGitInfo: true
timeZone: Europe/Paris timeZone: Europe/Paris
theme: ["2026"] theme: ["2026"]
security: security:

View File

@@ -48,10 +48,10 @@
</li> </li>
{{- end -}} {{- end -}}
</ul> </ul>
{{- with .Lastmod -}} {{- with .GitInfo -}}
<p> <p>
Dernière modification de cette page : 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> </p>
{{- end -}} {{- end -}}
</nav> </nav>