mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -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">
|
<span class="post-meta-item">
|
||||||
{{ with $.Site.Params.gitFileIcon }}
|
{{ with .Site.Params.gitFileIcon }}
|
||||||
{{ partial "icon.html" . }}
|
{{ partial "icon.html" . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ partial "icon.html" "file" }}
|
{{ partial "icon.html" "file" }}
|
||||||
{{ end }}
|
{{ 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
|
View source
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user