This commit is contained in:
Nuno Coração 2023-04-29 16:55:14 +01:00
parent e10caf4cf4
commit ad620c454b
3 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@ description: "See what's possible with Blowfish."
cascade:
showEdit: false
showSummary: false
hideFeatureImage: false
---
{{< lead >}}

View file

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

View file

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