From 38de79944751a4a7d017630fdb89e1f3e55c06e5 Mon Sep 17 00:00:00 2001 From: paspo Date: Tue, 8 Apr 2025 21:50:28 +0200 Subject: [PATCH] fix img --- layouts/shortcodes/img.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 2316130..332cd1c 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,5 +1,7 @@
- {{ .Get + + {{- $imgsrc := .Page.Resources.GetMatch (.Get "src") -}} + {{ .Get
{{ if strings.HasPrefix (.Get "source") "http" }}