From 86b5018dfe77abbda4ed96a9f3b54bc8f3ee8a5e Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Sat, 9 Nov 2024 20:48:49 +0530
Subject: [PATCH] Refactor 5
---
layouts/partials/cover.html | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html
index 76aaf0d1..da792d75 100644
--- a/layouts/partials/cover.html
+++ b/layouts/partials/cover.html
@@ -28,15 +28,19 @@
{{- if $cover -}}{{/* i.e it is present in page bundle */}}
{{- if (and (in $processableFormats $cover.MediaType.SubType) ($responsiveImages) (eq $prod true)) }}
-
+
{{- else }}{{/* Unprocessable image or responsive images disabled */}}
-
+
{{- end }}
{{- else }}{{/* For absolute urls and external links, no img processing here */}}