We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.Page
1 parent 0fe8575 commit 587ab16Copy full SHA for 587ab16
layouts/partials/cover.html
@@ -4,7 +4,7 @@
4
<figure class="entry-cover">
5
{{- $responsiveImages := (.Params.cover.responsiveImages | default .Site.Params.cover.responsiveImages) | default true }}
6
{{- $addLink := (and .Site.Params.cover.linkFullImages (not $.IsHome)) }}
7
- {{- $cover := (.Page.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
+ {{- $cover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
8
{{- if $cover -}}{{/* i.e it is present in page bundle */}}
9
{{- if $addLink }}<a href="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}" target="_blank"
10
rel="noopener noreferrer">{{ end -}}
0 commit comments