fix(git): git info in footer
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
<div class="post-info-mod">
|
||||
<span>
|
||||
{{- printf (T "lastMod") $modify_date -}}
|
||||
{{- with .GitInfo -}}
|
||||
{{- $gitHash := .Hash -}}
|
||||
<a class="git-hash" {{ with $.Site.Params.gitRepo }}href="{{ printf `%s/commit/%s` . $gitHash }}" target="_blank"{{ else }}href="javascript:void(0);"{{ end }} title="commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ $gitHash }}: {{ .Subject }}">
|
||||
<i class="fas fa-hashtag fa-fw"></i>{{- .AbbreviatedHash -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="post-info-license">
|
||||
|
||||
Reference in New Issue
Block a user