From 1c5631d82c05c3128662615b271127b4fd36c35e Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Mon, 13 Jan 2025 14:25:13 +0100 Subject: [PATCH] clean up code and add lazy-loading --- layouts/_default/_markup/render-image.html | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 41008ca..984a322 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,11 +1,3 @@ -{{ if .Title }} -
- {{ .Text }} -
{{ .Title }}
-
-{{ else }} -
- {{ .Text }} -
-{{ end }} +{{ $img := imageConfig (add "/static/" (.Destination | safeURL)) }} +{{ .Text }}