Show last overall commit (not per-file)
This commit is contained in:
6
bin/get-last-commit.sh
Executable file
6
bin/get-last-commit.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export HUGOxPARAMSxGITxLAST_COMMITxAUTHORNAME=$(git log -1 --format=%an)
|
||||
export HUGOxPARAMSxGITxLAST_COMMITxDATE=$(git log -1 --format=%cI)
|
||||
export HUGOxPARAMSxGITxLAST_COMMITxHASH=$(git log -1 --format=%H)
|
||||
export HUGOxPARAMSxGITxLAST_COMMITxSUBJECT=$(git log -1 --format=%s)
|
||||
@@ -1,9 +1,9 @@
|
||||
<footer>
|
||||
<hr>
|
||||
|
||||
Rendered {{ now | dateFormat "2006-01-02 15:04:05 MST" }} •
|
||||
{{ with .GitInfo }}
|
||||
<a href="https://github.com/dce/davideisinger.com/commit/{{ .Hash }}">{{ substr .Hash 0 7}}</a>
|
||||
Rendered {{ now | dateFormat "2006-01-02 15:04:05 MST" }}
|
||||
{{ with site.Params.git.last_commit }}
|
||||
• <a href="https://github.com/dce/davideisinger.com/commit/{{ .hash }}">{{ substr .hash 0 7}}</a>
|
||||
{{ end }}
|
||||
<br>
|
||||
<a href="https://v1.davideisinger.com">Version 1</a> •
|
||||
|
||||
Reference in New Issue
Block a user