fix: Recherche seulement les images
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
{{ $truncateSize := cond $isBig 180 90}}
|
||||
<div class="post{{ if $isBig }} big{{ end }}">
|
||||
<div class="picture">
|
||||
{{ $image := .Resources.GetMatch (default "*" .Params.image) }}
|
||||
{{ $image := .Resources.GetMatch (default "**.jpg" .Params.image) }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ if $image }}
|
||||
{{ $resized := $image.Fill $pictureSize}}
|
||||
|
Reference in New Issue
Block a user