mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Change git commit to view history button
This commit is contained in:
parent
5f40b6742b
commit
3f98073aea
@ -27,8 +27,8 @@ params:
|
||||
wordcount: true
|
||||
readingtime: true
|
||||
|
||||
# used for last update
|
||||
repoURL: https://github.com/BBaoVanC/bobatheme
|
||||
# used for "View history"
|
||||
historyURL: https://github.com/BBaoVanC/bobatheme/commits/master
|
||||
|
||||
privacy:
|
||||
googleAnalytics:
|
||||
|
@ -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") }}
|
||||
|
Loading…
Reference in New Issue
Block a user