Utiliser la date du dernier commit Git dans le footer
This commit is contained in:
@@ -5,6 +5,7 @@ title: Richard Dern
|
||||
copyright: "© Richard Dern"
|
||||
disableHugoGeneratorInject: true
|
||||
enableEmoji: true
|
||||
enableGitInfo: true
|
||||
timeZone: Europe/Paris
|
||||
theme: ["2026"]
|
||||
security:
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user