mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-14 20:35:58 -06:00
14 lines
475 B
HTML
14 lines
475 B
HTML
{{ if and .Site.Params.gitFileURL .File.Path }}
|
|
<span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_view_source" }}">
|
|
{{ with .Site.Params.gitFileIcon }}
|
|
{{ partial "icon.html" . }}
|
|
{{ else }}
|
|
{{ partial "icon.html" "file" }}
|
|
{{ end }}
|
|
|
|
<a href="{{ printf "%s/content/%s" .Site.Params.gitFileURL .File.Path }}" target="_blank" rel="noopener">
|
|
View source
|
|
</a>
|
|
</span>
|
|
{{ end }}
|