feat: Ajout d'une class grand
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build encountered an error

This commit is contained in:
2023-05-04 16:38:31 +02:00
parent 42e4eee3bb
commit a7d3ac01e9
2 changed files with 17 additions and 6 deletions

View File

@ -4,7 +4,7 @@
{{ $path := cond (in .Destination "/") .Destination (path.Join "/" .Page.File.Dir .Destination) }}
{{ $image := .Page.Resources.GetMatch (printf "*%s*" .Destination) }}
{{ with $image }}
{{ $resized := $image.Resize "610x q100 webp" }}
{{ $resized := $image.Resize "960x q100 webp" }}
{{ $path = $resized.RelPermalink }}
{{ end }}
<img src="{{ $path | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} loading="lazy" />