mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Improve viewsource meta item
This commit is contained in:
parent
8f36ba7368
commit
37c5a970c4
@ -1,12 +1,12 @@
|
||||
{{ with .Site.Params.gitFileURL }}
|
||||
{{ if and .Site.Params.gitFileURL .File.Path }}
|
||||
<span class="post-meta-item">
|
||||
{{ with $.Site.Params.gitFileIcon }}
|
||||
{{ 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" .Site.Params.gitFileURL .File.Path }}" target="_blank" rel="noopener">
|
||||
View source
|
||||
</a>
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user