Fix cover generation

This commit is contained in:
Sergio Villar Senin 2024-08-26 17:56:22 +02:00
parent 58c4841c26
commit 73753440c4

View file

@ -1,7 +1,7 @@
{{- 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" }}
{{- $loading := cond (eq $.IsSingle "true") "eager" "lazy" }}
<figure class="entry-cover">
{{- $responsiveImages := (.Params.cover.responsiveImages | default site.Params.cover.responsiveImages) | default true }}
{{- $addLink := (and site.Params.cover.linkFullImages $.IsSingle) }}