forked from BgLUG/bglug.it
add footer commit info (#188)
 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:
parent
e2ec266924
commit
267843eb1a
@ -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