From 2fea5a10623dbaa82c17d44dd42f8514707e1429 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Sat, 27 Mar 2021 13:16:10 +0530
Subject: [PATCH] add browser-level lazy loading to cover images
amend to c353447
---
layouts/partials/cover.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html
index 5ff16bc0..6f932f9e 100644
--- a/layouts/partials/cover.html
+++ b/layouts/partials/cover.html
@@ -11,19 +11,19 @@
{{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") }}
{{- $prod := (hugo.IsProduction | or (eq .Site.Params.env "production")) }}
{{- if (and (in $processableFormats $cover.MediaType.SubType) (ne .Site.Params.cover.responsiveImages false) (eq $prod true)) }}
-
{{- else }}{{/* Unprocessable image or responsive images disabled */}}
-
+
{{- end }}
{{- else }}{{/* For absolute urls and external links, no img processing here */}}
{{- if $addLink }}{{ end -}}
-
+
{{- end }}
{{- if $addLink }}{{ end -}}
{{/* Display Caption */}}