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 - :default
params: params:
gitrepo: https://codeberg.org/xals/alexis.lahouze.org
pagination: pagination:
pagerSize: 15 pagerSize: 15
+11 -6
View File
@@ -1,10 +1,15 @@
{{ with .GitInfo }} {{ with .GitInfo }}
<p>Dernière modification : <p>
<ul> Modifié par
<li>commit {{ .Hash }}</li> <a href="mailto:{{ replace .AuthorEmail "@" "_NOSPAM@" }}">
<li>du {{ .AuthorDate | time.Format ":date_full" }} à {{ .AuthorDate | time.Format ":time_full" }}</li> {{ .AuthorName }}
<li>par {{ .AuthorName }} &lt;{{ replace .AuthorEmail "@" " at " }}&gt;</li> </a>
</ul> 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> </p>
{{ end }} {{ end }}
<p>Généré par Hugo version {{ hugo.Version }}</p> <p>Généré par Hugo version {{ hugo.Version }}</p>