Customizable View source icon

This commit is contained in:
2021-11-07 16:39:17 -06:00
parent 4eec2d8c4d
commit f16f2b6d8a
2 changed files with 11 additions and 5 deletions

View File

@ -60,11 +60,16 @@
</span>
{{ end }}
{{ with .Site.Params.historyURL }}
{{ with .Site.Params.gitFileURL }}
<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">
View history
View source
</a>
</span>
{{ end }}