feat: Convertion des jpg en webp

This commit is contained in:
2021-05-03 14:57:56 +02:00
parent 9619c20b9b
commit 17a13a4430
4 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{{ $isBig := default false (.Scratch.Get "big") }}
{{ $title := .RenderString .Title }}
{{ $titleWithoutHTML := $title | plainify }}
{{ $pictureSize := cond $isBig "220x220 Center" "100x100 Center" }}
{{ $pictureSize := cond $isBig "220x220 Center webp" "100x100 Center webp" }}
{{ $truncateSize := cond $isBig 180 90}}
<div class="post{{ if $isBig }} big{{ end }}">
<div class="picture">