fix: read imageProcessing.cover.enabled
correctly (#621)
This commit is contained in:
parent
add8f364e0
commit
3a79e9856e
@ -10,7 +10,7 @@
|
|||||||
{{- $Width := $imageRaw.Width -}}
|
{{- $Width := $imageRaw.Width -}}
|
||||||
{{- $Height := $imageRaw.Height -}}
|
{{- $Height := $imageRaw.Height -}}
|
||||||
|
|
||||||
{{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
|
{{- if .context.Site.Params.imageProcessing.cover.enabled -}}
|
||||||
{{- $thumbnail := $imageRaw.Fill .size -}}
|
{{- $thumbnail := $imageRaw.Fill .size -}}
|
||||||
{{- $Permalink = $thumbnail.RelPermalink -}}
|
{{- $Permalink = $thumbnail.RelPermalink -}}
|
||||||
{{- $Width = $thumbnail.Width -}}
|
{{- $Width = $thumbnail.Width -}}
|
||||||
@ -36,4 +36,4 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</article>
|
||||||
|
Loading…
Reference in New Issue
Block a user