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 }}