From a0f361e2e17c0027b08aa9bc3ae7ccfa47349b1b Mon Sep 17 00:00:00 2001 From: gribse Date: Thu, 15 May 2025 21:31:52 +0200 Subject: [PATCH] fix: enhance footer to display detailed git information --- layouts/partials/footer.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f4433cd..36463b7 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -24,10 +24,13 @@ Flux RSS - {{ with (readFile "data/gitinfo.txt") }} - Mis à jour : {{ . }} - {{ end }} - test + {{ $gitinfo := readFile "data/gitinfo.txt" | split "\n" }} + + {{ $date := index $gitinfo 0 }} + {{ $time := index $gitinfo 1 }} + {{ $commit := index $gitinfo 2 }} + {{ $fullcommit := index $gitinfo 3 }} + Mis à jour le $date à $time (Commit {{ $commit }} {{- end }}