diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html index 5f341a90..4289c18f 100644 --- a/layouts/partials/cover.html +++ b/layouts/partials/cover.html @@ -8,9 +8,12 @@ {{- $pageBundleCover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }} {{- $globalResourcesCover := (resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }} {{- $cover := (or $pageBundleCover $globalResourcesCover)}} + + {{- if $addLink }} + + {{- end }} + {{- if $cover -}}{{/* i.e it is present in page bundle */}} - {{- if $addLink }}{{ end -}} {{- $sizes := (slice "360" "480" "720" "1080" "1500") }} {{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}} {{- if hugo.IsExtended -}} @@ -33,10 +36,16 @@ rel="noopener noreferrer">{{ end -}} {{ $alt }} {{- end }} - {{- if $addLink }}{{ end -}} + + {{- if $addLink }} + + {{ end -}} + {{/* Display Caption */}} {{- if $.IsSingle }} - {{ with .Params.cover.caption }}

{{ . | markdownify }}

{{- end }} + {{- with .Params.cover.caption }} +

{{ . | markdownify }}

+ {{- end }} {{- end }} {{- end }}{{/* End image */}}