Ajout des informations Git dans le pied de page.

This commit is contained in:
2026-03-25 22:36:23 +01:00
parent 4087a8a4ff
commit 7e552b83f7
2 changed files with 12 additions and 6 deletions
+1
View File
@@ -17,6 +17,7 @@ frontmatter:
- :default
params:
gitrepo: https://codeberg.org/xals/alexis.lahouze.org
pagination:
pagerSize: 15
+11 -6
View File
@@ -1,10 +1,15 @@
{{ with .GitInfo }}
<p>Dernière modification :
<ul>
<li>commit {{ .Hash }}</li>
<li>du {{ .AuthorDate | time.Format ":date_full" }} à {{ .AuthorDate | time.Format ":time_full" }}</li>
<li>par {{ .AuthorName }} &lt;{{ replace .AuthorEmail "@" " at " }}&gt;</li>
</ul>
<p>
Modifié par
<a href="mailto:{{ replace .AuthorEmail "@" "_NOSPAM@" }}">
{{ .AuthorName }}
</a>
le {{ .AuthorDate | time.Format ":date_full" }} à {{ .AuthorDate | time.Format ":time_full" }}
<br />
&gt; commit
<a href="{{ site.Param "gitrepo" }}/commit/{{ .Hash }}">
{{ .AbbreviatedHash }} - {{ .Subject }}
</a>
</p>
{{ end }}
<p>Généré par Hugo version {{ hugo.Version }}</p>