From f198decc116e0937087050a804b8e4fd95dd3380 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 9 Nov 2024 20:21:33 +0530 Subject: [PATCH] Refactor cover.html --- layouts/partials/cover.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html index e92b5557..5f341a90 100644 --- a/layouts/partials/cover.html +++ b/layouts/partials/cover.html @@ -1,8 +1,8 @@ {{- with .cxt}} {{/* Apply proper context from dict */}} {{- if (and .Params.cover.image (not $.isHidden)) }} -{{- $alt := (.Params.cover.alt | default .Params.cover.caption | plainify) }} -{{- $loading := cond $.IsSingle "eager" "lazy" }}
+ {{- $alt := (.Params.cover.alt | default .Params.cover.caption | plainify) }} + {{- $loading := cond $.IsSingle "eager" "lazy" }} {{- $responsiveImages := (.Params.cover.responsiveImages | default site.Params.cover.responsiveImages) | default true }} {{- $addLink := (and site.Params.cover.linkFullImages $.IsSingle) }} {{- $pageBundleCover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}