diff options
author | Jimmy Cai <github@jimmycai.com> | 2022-06-05 19:21:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-05 19:21:08 +0300 |
commit | 3a79e9856e8038283807fd157a566a07b97ab776 (patch) | |
tree | 5d55d69f5b2c07c7e9ce5c7279dc7485989e1177 | |
parent | add8f364e0d1c78de65883491ac48970d7b4d30d (diff) |
fix: read `imageProcessing.cover.enabled` correctly (#621)
-rw-r--r-- | layouts/partials/article-list/tile.html | 4 |
1 files 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 @@ </h2> </div> </a> -</article>
\ No newline at end of file +</article> |