add footer commit info (#188)

![image](/attachments/9729d5ac-76ef-4aa8-9da0-227d0475f31d)

il link porta https://git.libreschool.org/BgLUG/bglug.it/commits/branch/main

Reviewed-on: BgLUG/bglug.it#188
Reviewed-by: omar <omarl@noreply.libreschool.org>
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
Paolo Asperti 2024-08-06 20:04:00 +00:00 committed by Paolo Asperti
parent e2ec266924
commit 267843eb1a
3 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,11 @@ jobs:
resources
key: bglug-it-hugo-resources
- name: update git hash
run: |
H=$(git rev-parse --short=10 HEAD)
sed -i 's/AbbreviatedHash\.*/AbbreviatedHash: $H/' config/_default/params.yaml
- name: Build Hugo
uses: lowply/build-hugo@v0.129.0
with:

View File

@ -0,0 +1,4 @@
---
Source:
AbbreviatedHash: unknown
URL: https://git.libreschool.org/BgLUG/bglug.it/commits/branch/main

View File

@ -49,6 +49,9 @@
<li>Design: <a href="https://html5up.net">HTML5 UP</a>
<li><a href="https://github.com/half-duplex/hugo-arcana">Theme</a>
{{- end }}
{{ with .Site.Params.Source }}
<li>Commit: <a href="{{.URL}}">{{ .AbbreviatedHash }}</a>
{{ end }}
</ul>
</div>
</div>