This commit is contained in:
Nuno Coração committed 2023-04-29 16:55:14 +01:00
1 parent e10caf4cf4
commit ad620c454b
3 files changed
+3

No files matched your search

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