From 3a79e9856e8038283807fd157a566a07b97ab776 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 5 Jun 2022 18:21:08 +0200 Subject: fix: read `imageProcessing.cover.enabled` correctly (#621) --- layouts/partials/article-list/tile.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/article-list/tile.html b/layouts/partials/article-list/tile.html index 4ec5d57..be5744b 100644 --- a/layouts/partials/article-list/tile.html +++ b/layouts/partials/article-list/tile.html @@ -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 @@ - \ No newline at end of file + -- cgit v1.2.3