mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
fix: read imageProcessing.cover.enabled
correctly (#621)
This commit is contained in:
parent
add8f364e0
commit
3a79e9856e
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
{{- $Width := $imageRaw.Width -}}
|
||||
{{- $Height := $imageRaw.Height -}}
|
||||
|
||||
{{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
|
||||
{{- if .context.Site.Params.imageProcessing.cover.enabled -}}
|
||||
{{- $thumbnail := $imageRaw.Fill .size -}}
|
||||
{{- $Permalink = $thumbnail.RelPermalink -}}
|
||||
{{- $Width = $thumbnail.Width -}}
|
||||
|
@ -36,4 +36,4 @@
|
|||
</h2>
|
||||
</div>
|
||||
</a>
|
||||
</article>
|
||||
</article>
|
||||
|
|
Loading…
Reference in a new issue