diff options
Diffstat (limited to 'templates_gmi/shortcodes/fig.html')
| -rw-r--r-- | templates_gmi/shortcodes/fig.html | 7 |
1 files changed, 6 insertions, 1 deletions
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 }} |
