mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
fix(git): build panic without git (#271)
This commit is contained in:
parent
9003e18ada
commit
d5bc3be19d
1 changed files with 6 additions and 5 deletions
|
@ -7,12 +7,13 @@
|
||||||
<div class="post-info-mod">
|
<div class="post-info-mod">
|
||||||
<span>
|
<span>
|
||||||
{{- printf (T "lastMod") $modify_date -}}
|
{{- printf (T "lastMod") $modify_date -}}
|
||||||
|
{{- if .Site.Params.gitRepo -}}
|
||||||
{{- with .GitInfo -}}
|
{{- with .GitInfo -}}
|
||||||
{{- $gitHash := .Hash -}}
|
<a class="git-hash" href="{{ printf `%s/commit/%s` $.Site.Params.gitRepo .Hash }}" target="_blank" title="commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ .Hash }}: {{ .Subject }}">
|
||||||
<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 -}}
|
<i class="fas fa-hashtag fa-fw"></i>{{- .AbbreviatedHash -}}
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="post-info-license">
|
<div class="post-info-license">
|
||||||
|
|
Loading…
Reference in a new issue