fix: Recherche seulement les images
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
{{ $imageSizeBig := cond $isBig "1920x850 Top" "1920x450 Center" }}
|
||||
<header class="header{{ if $isBig }} home{{ end }}">
|
||||
{{ $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 }}
|
||||
|
Reference in New Issue
Block a user