link to git commit

This commit is contained in:
Marvin Steadfast 2020-03-05 13:06:46 +01:00
parent 9635718899
commit db87168281
2 changed files with 2 additions and 0 deletions

View File

@ -31,3 +31,4 @@ outputs:
- HTML
- RSS
- JSON
enableGitInfo: true

View File

@ -4,6 +4,7 @@
<p>
<small>
{{ .Date.Format "02.01.2006 15:04" }}
{{ if .GitInfo }}/// <a href="https://github.com/xsteadfastx/blog/commit/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>{{ end }}
{{ if .Params.tags }}///{{ end }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>