mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Rework commit info display in footer (#277)
* Rework commit info display in footer Use Hugo .GitInfo to get Hash and AbbreviatedHash Remove leading · because it renders as .· when credits are displayed * Update CONTRIBUTORS.md
This commit is contained in:
@@ -60,3 +60,4 @@
|
|||||||
- [Paolo Mainardi](https://paolomainardi.com)
|
- [Paolo Mainardi](https://paolomainardi.com)
|
||||||
- [Ka-Wai Lin](https://github.com/kwlin)
|
- [Ka-Wai Lin](https://github.com/kwlin)
|
||||||
- [Piotr Orzechowski](https://orzechowski.tech)
|
- [Piotr Orzechowski](https://orzechowski.tech)
|
||||||
|
- [Glenn Feunteun](https://github.com/gfeun)
|
||||||
|
|||||||
@@ -16,8 +16,9 @@
|
|||||||
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Site.Params.commit }}
|
{{ if .Site.Params.commit }}
|
||||||
{{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}
|
{{ if .GitInfo }}
|
||||||
[<a href="{{ .Site.Params.commit }}{{ getenv "GIT_COMMIT_SHA" }}">{{ getenv "GIT_COMMIT_SHA_SHORT" }}</a>]
|
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user