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 }}