From 3408ee9d59fa891e4c5536e46d0fbea55c65592c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 9 Nov 2024 21:05:08 +0530 Subject: [PATCH] Add comments and manage whitespace --- layouts/partials/cover.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html index 0029d99d..9c1f9eaa 100644 --- a/layouts/partials/cover.html +++ b/layouts/partials/cover.html @@ -10,8 +10,8 @@ {{- $pageBundleCover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }} {{- $globalResourcesCover := (resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }} {{- $cover := (or $pageBundleCover $globalResourcesCover)}} - {{/* We are not using the .Param.cover.relative to decide the location of image */}} - {{/* If we have the image in pageBundle or globalResources we can process the image */}} + {{- /* We are not using the .Param.cover.relative to decide the location of image */}} + {{- /* If we have the image in pageBundle or globalResources we can process the image */}} {{- $sizes := (slice "360" "480" "720" "1080" "1500") }} {{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}} @@ -46,17 +46,17 @@ {{ $alt }} {{- end }} {{- else }} - {{/* For absolute urls and external links, no img processing here */}} + {{- /* For absolute urls and external links, no img processing here */}} {{ $alt }} {{- end }} {{- if $addLink }} - {{ end -}} + {{- end -}} - {{/* Display Caption */}} + {{- /* Display Caption */}} {{- if $.IsSingle }} - {{- with .Params.cover.caption }} + {{ with .Params.cover.caption -}}
{{ . | markdownify }}
{{- end }} {{- end }}