From b89f1ecbcb7493d6f62ee902fe235150c6fe920b Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 24 May 2023 02:27:19 +0200 Subject: [PATCH] avif gebruiken we niet, weggehaald uit code --- .../layouts/_default/_markup/render-image.html | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/themes/nluug/layouts/_default/_markup/render-image.html b/themes/nluug/layouts/_default/_markup/render-image.html index f377a91..ecd86b4 100644 --- a/themes/nluug/layouts/_default/_markup/render-image.html +++ b/themes/nluug/layouts/_default/_markup/render-image.html @@ -3,13 +3,6 @@ {{ $isPNG := eq (path.Ext .Destination) ".png" }} {{ if ($isJPG) -}} - {{ $avifPath:= replaceRE "(jpg|jpeg)$i" ".avif" .Destination }} - {{ $avifPathStatic:= printf "static/%s" $avifPath }} - - {{ if (fileExists $avifPathStatic) -}} - - {{- end }} - {{ $webpPath:= replace .Destination ".jpg" ".webp" }} {{ $webpPathStatic:= printf "static/%s" $webpPath }} @@ -19,13 +12,6 @@ {{- end }} {{ if ($isPNG) -}} - {{ $avifPath:= replace .Destination ".png" ".avif" }} - {{ $avifPathStatic:= printf "static/%s" $avifPath }} - - {{ if (fileExists $avifPathStatic) -}} - - {{- end }} - {{ $webpPath:= replace .Destination ".png" ".webp" }} {{ $webpPathStatic:= printf "static/%s" $webpPath }}