diff --git a/layouts/partials/article-preview.html b/layouts/partials/article-preview.html index 7d1d9d7..fc7eced 100644 --- a/layouts/partials/article-preview.html +++ b/layouts/partials/article-preview.html @@ -5,7 +5,7 @@ {{ $truncateSize := cond $isBig 180 90}}
- {{ $image := .Resources.GetMatch (default "*" .Params.image) }} + {{ $image := .Resources.GetMatch (default "**.jpg" .Params.image) }} {{ if $image }} {{ $resized := $image.Fill $pictureSize}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2d2fd5f..ebac301 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,7 @@ {{ $imageSizeBig := cond $isBig "1920x850 Top" "1920x450 Center" }}
{{ $headless := .Site.GetPage "/" }} - {{ $image := default ($headless.Resources.GetMatch "*") (.Resources.GetMatch (default "*" .Params.image)) }} + {{ $image := default ($headless.Resources.GetMatch "**.jpg") (.Resources.GetMatch (default "**.jpg" .Params.image)) }} {{ if $image }} {{ $resizedSmall := $image.Fill $imageSizeSmall }} {{ $resizedBig := $image.Fill $imageSizeBig }}