Skip to content

Commit

Permalink
Remove .Page method being used
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Jan 13, 2022
1 parent 0fe8575 commit 587ab16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/cover.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<figure class="entry-cover">
{{- $responsiveImages := (.Params.cover.responsiveImages | default .Site.Params.cover.responsiveImages) | default true }}
{{- $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 $addLink }}<a href="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" target="_blank"
rel="noopener noreferrer">{{ end -}}
Expand Down

0 comments on commit 587ab16

Please sign in to comment.