diff --git a/layouts/partials/viewsource-meta-item.html b/layouts/partials/viewsource-meta-item.html index baf8a60..8f92cdd 100644 --- a/layouts/partials/viewsource-meta-item.html +++ b/layouts/partials/viewsource-meta-item.html @@ -1,12 +1,12 @@ -{{ with .Site.Params.gitFileURL }} +{{ if and .Site.Params.gitFileURL .File.Path }} - {{ with $.Site.Params.gitFileIcon }} + {{ with .Site.Params.gitFileIcon }} {{ partial "icon.html" . }} {{ else }} {{ partial "icon.html" "file" }} {{ end }} - + View source