fix: enhance footer to display detailed git information
Some checks are pending
/ test (push) Waiting to run
Some checks are pending
/ test (push) Waiting to run
This commit is contained in:
parent
bbe59a1345
commit
a0f361e2e1
1 changed files with 7 additions and 4 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue