feat: Ajout des vignettes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -5,7 +5,8 @@
|
||||
{{ $truncateSize := cond $isBig 180 90}}
|
||||
<div class="post{{ if $isBig }} big{{ end }}">
|
||||
<div class="picture">
|
||||
{{ $image := .Resources.GetMatch (default "**.jpg" .Params.image) }}
|
||||
{{ $imageName := or .Params.vignette .Params.image }}
|
||||
{{ $image := .Resources.GetMatch (default "**.jpg" $imageName) }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ if $image }}
|
||||
{{ $resized := $image.Fill $pictureSize}}
|
||||
|
Reference in New Issue
Block a user