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> <span>Flux RSS</span>
</a> </a>
{{ with (readFile "data/gitinfo.txt") }} {{ $gitinfo := readFile "data/gitinfo.txt" | split "\n" }}
<span>Mis à jour : {{ . }}</span>
{{ end }} {{ $date := index $gitinfo 0 }}
<span>test</span> {{ $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> </footer>
{{- end }} {{- end }}