From 69e01c2a6d0451f9eb7ee67e9ad464e5b1f01a67 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 9 Aug 2026 17:32:32 +0300 Subject: Fix fig paths in now pages --- templates_gmi/shortcodes/fig.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates_gmi') diff --git a/templates_gmi/shortcodes/fig.html b/templates_gmi/shortcodes/fig.html index 9988107..4e4b4c3 100644 --- a/templates_gmi/shortcodes/fig.html +++ b/templates_gmi/shortcodes/fig.html @@ -1 +1,6 @@ -=> {{ src }} {{ alt }} +{% if src is starting_with("/") %} +{% set img_src = src %} +{% else %} +{% set img_src = page.path ~ src %} +{% endif %} +=> {{ img_src }} {{ alt }} -- cgit v1.3