diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2d728e0..ef3ef29 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -33,7 +33,11 @@
{{- if .Params.cover }}
- cover image for {{ .Title }} + {{ if (or (fileExists (path.Join "static" .Params.cover)) (hasPrefix .Params.cover "http://") (hasPrefix .Params.cover "https://")) }} + cover image for {{ .Title | plainify }} + {{else}} + cover image for {{ .Title | plainify }} + {{end}}
{{- end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fc95dc6..7cdea8c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -28,7 +28,11 @@
{{- if .Params.cover }}
+ {{ if (or (fileExists (path.Join "static" .Params.cover)) (hasPrefix .Params.cover "http://") (hasPrefix .Params.cover "https://")) }} cover image for {{ .Title | plainify }} + {{else}} + cover image for {{ .Title | plainify }} + {{end}}
{{- end }} {{- if .Params.ShowToc }}