mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Customizable View source icon
This commit is contained in:
parent
4eec2d8c4d
commit
f16f2b6d8a
@ -27,8 +27,9 @@ params:
|
|||||||
wordcount: true
|
wordcount: true
|
||||||
readingtime: true
|
readingtime: true
|
||||||
|
|
||||||
# used for "View history"
|
# used for "View source"
|
||||||
historyURL: https://github.com/BBaoVanC/bobatheme/commits/master
|
gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master
|
||||||
|
gitFileIcon: github-circle
|
||||||
|
|
||||||
privacy:
|
privacy:
|
||||||
googleAnalytics:
|
googleAnalytics:
|
||||||
|
@ -60,11 +60,16 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Site.Params.historyURL }}
|
{{ with .Site.Params.gitFileURL }}
|
||||||
<span class="post-meta-item">
|
<span class="post-meta-item">
|
||||||
{{ partial "icon.html" "history" }}
|
{{ with $.Site.Params.gitFileIcon }}
|
||||||
|
{{ partial "icon.html" . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ partial "icon.html" "file" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<a href="{{ printf "%s/content/%s" . $.File.Path }}" target="_blank" rel="noopener">
|
<a href="{{ printf "%s/content/%s" . $.File.Path }}" target="_blank" rel="noopener">
|
||||||
View history
|
View source
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user