mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Remove .Page
method being used
reference: https://github.com/gohugoio/hugo/releases/tag/v0.92.0
This commit is contained in:
parent
0fe857539b
commit
587ab16725
@ -4,7 +4,7 @@
|
|||||||
<figure class="entry-cover">
|
<figure class="entry-cover">
|
||||||
{{- $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 (not $.IsHome)) }}
|
{{- $addLink := (and .Site.Params.cover.linkFullImages (not $.IsHome)) }}
|
||||||
{{- $cover := (.Page.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
|
{{- $cover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
|
||||||
{{- if $cover -}}{{/* i.e it is present in page bundle */}}
|
{{- if $cover -}}{{/* i.e it is present in page bundle */}}
|
||||||
{{- if $addLink }}<a href="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" target="_blank"
|
{{- if $addLink }}<a href="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" target="_blank"
|
||||||
rel="noopener noreferrer">{{ end -}}
|
rel="noopener noreferrer">{{ end -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user