add footer commit info
This commit is contained in:
parent
e2ec266924
commit
ee3c0473aa
@ -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:
|
||||
|
4
config/_default/params.yaml
Normal file
4
config/_default/params.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
Source:
|
||||
AbbreviatedHash: unknown
|
||||
URL: https://git.libreschool.org/BgLUG/bglug.it/commits/branch/main
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user