From e4a8a804aa5353bcaa4403da291e02bd9fcd22db Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Sat, 14 Jun 2025 13:48:40 +0200 Subject: initial version --- themes/fredo/layouts/_markup/render-image.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 themes/fredo/layouts/_markup/render-image.html (limited to 'themes/fredo/layouts/_markup') diff --git a/themes/fredo/layouts/_markup/render-image.html b/themes/fredo/layouts/_markup/render-image.html new file mode 100644 index 0000000..86891e7 --- /dev/null +++ b/themes/fredo/layouts/_markup/render-image.html @@ -0,0 +1,12 @@ +{{ $myimg := resources.Get .Destination }} +{{ if $myimg }} + {{ $myimg := $myimg.Resize "1024x" }} +
+ + {{ .PlainText }} + + +
+{{ else }} + {{ errorf "Can not find image: %s" .Destination }} +{{ end }} \ No newline at end of file -- cgit v1.2.3