mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-01-12 22:43:20 -05:00
Refactor cover.html
This commit is contained in:
parent
5a2a88cab1
commit
f198decc11
@ -1,8 +1,8 @@
|
|||||||
{{- with .cxt}} {{/* Apply proper context from dict */}}
|
{{- with .cxt}} {{/* Apply proper context from dict */}}
|
||||||
{{- if (and .Params.cover.image (not $.isHidden)) }}
|
{{- if (and .Params.cover.image (not $.isHidden)) }}
|
||||||
{{- $alt := (.Params.cover.alt | default .Params.cover.caption | plainify) }}
|
|
||||||
{{- $loading := cond $.IsSingle "eager" "lazy" }}
|
|
||||||
<figure class="entry-cover">
|
<figure class="entry-cover">
|
||||||
|
{{- $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 }}
|
{{- $responsiveImages := (.Params.cover.responsiveImages | default site.Params.cover.responsiveImages) | default true }}
|
||||||
{{- $addLink := (and site.Params.cover.linkFullImages $.IsSingle) }}
|
{{- $addLink := (and site.Params.cover.linkFullImages $.IsSingle) }}
|
||||||
{{- $pageBundleCover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
|
{{- $pageBundleCover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
|
||||||
|
Loading…
Reference in New Issue
Block a user