From ad620c454b86546f142f7eb3ed157b7b8bd1dc34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Sat, 29 Apr 2023 16:55:14 +0100 Subject: [PATCH] final --- exampleSite/content/samples/_index.md | 1 + layouts/partials/article-link/card.html | 1 + layouts/partials/article-link/simple.html | 1 + 3 files changed, 3 insertions(+) diff --git a/exampleSite/content/samples/_index.md b/exampleSite/content/samples/_index.md index 0378f4b1..eea24692 100755 --- a/exampleSite/content/samples/_index.md +++ b/exampleSite/content/samples/_index.md @@ -5,6 +5,7 @@ description: "See what's possible with Blowfish." cascade: showEdit: false showSummary: false + hideFeatureImage: false --- {{< lead >}} diff --git a/layouts/partials/article-link/card.html b/layouts/partials/article-link/card.html index 93a4b949..8390f148 100644 --- a/layouts/partials/article-link/card.html +++ b/layouts/partials/article-link/card.html @@ -14,6 +14,7 @@ {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- if not $featured }}{{ with .Site.Params.defaultFeaturedImage }}{{ $featured = resources.Get . }}{{ end }}{{ end -}} + {{ if .Params.hideFeatureImage }}{{ $featured = false }}{{ end }} {{- with $featured -}} {{ if $disableImageOptimization }} {{ with . }} diff --git a/layouts/partials/article-link/simple.html b/layouts/partials/article-link/simple.html index c22846b4..48718a66 100644 --- a/layouts/partials/article-link/simple.html +++ b/layouts/partials/article-link/simple.html @@ -41,6 +41,7 @@ {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- if not $featured }}{{ with .Site.Params.defaultFeaturedImage }}{{ $featured = resources.Get . }}{{ end }}{{ end -}} + {{ if .Params.hideFeatureImage }}{{ $featured = false }}{{ end }} {{- with $featured -}} {{ if $disableImageOptimization }} {{ with . }}