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_html/shortcodes/fig.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates_html') diff --git a/templates_html/shortcodes/fig.html b/templates_html/shortcodes/fig.html index 4ac99b4..14b3a5e 100644 --- a/templates_html/shortcodes/fig.html +++ b/templates_html/shortcodes/fig.html @@ -1,4 +1,9 @@ +{% if src is starting_with("/") %} +{% set img_src = src %} +{% else %} +{% set img_src = page.path ~ src %} +{% endif %}
- {{ alt }} + {{ alt }}
-- cgit v1.3