fix: enhance footer to display detailed git information
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
gribse 2025-05-15 21:31:52 +02:00
parent bbe59a1345
commit a0f361e2e1

View file

@ -24,10 +24,13 @@
<span>Flux RSS</span>
</a>
{{ with (readFile "data/gitinfo.txt") }}
<span>Mis à jour : {{ . }}</span>
{{ end }}
<span>test</span>
{{ $gitinfo := readFile "data/gitinfo.txt" | split "\n" }}
{{ $date := index $gitinfo 0 }}
{{ $time := index $gitinfo 1 }}
{{ $commit := index $gitinfo 2 }}
{{ $fullcommit := index $gitinfo 3 }}
<span>Mis à jour le $date à $time (Commit <a href="https://git.achilletoupin.com/gribse/blog/commit/$fullcommit"><code>{{ $commit }}</code></a></span>
</footer>
{{- end }}