mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-09-19 11:28:47 -04:00
Fix cover generation
This commit is contained in:
parent
58c4841c26
commit
73753440c4
1 changed files with 1 additions and 1 deletions
|
@ -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) }}
|
||||
|
|
Loading…
Reference in a new issue