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 . }}