add footer commit info #188

Merged
paspo merged 1 commits from paspo/bglug.it:add-commit-nr into main 2024-08-06 20:04:01 +00:00
3 changed files with 12 additions and 0 deletions
Showing only changes of commit ee3c0473aa - Show all commits

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>