Change git commit to view history button

This commit is contained in:
2021-11-02 00:47:59 -05:00
parent 5f40b6742b
commit 3f98073aea
2 changed files with 6 additions and 8 deletions

View File

@ -43,16 +43,14 @@
</span>
{{ end }}
{{ if .Site.Params.repoURL }}
{{ with .GitInfo }}
{{ with .Site.Params.historyURL }}
<span class="post-meta-item">
{{ partial "icon.html" "branch" }}
<a href="{{ (printf "%s/blob/%s/content/%s" $.Site.Params.repoURL .Hash $.File.Path) | absURL }}" target="_blank" rel="noopener">
<code>{{ .AbbreviatedHash }}</code>
{{ partial "icon.html" "history" }}
<a href="{{ printf "%s/content/%s" . $.File.Path }}" target="_blank" rel="noopener">
View history
</a>
</span>
{{ end }}
{{ end }}
<div class="tags">
{{ range (.GetTerms "tags") }}