From 559e2c1cc05f31d6cf52231ecabd94be2d0f1daa Mon Sep 17 00:00:00 2001 From: Jieiku Date: Sat, 24 Aug 2024 11:21:26 -0700 Subject: Add Caption and Links to img/imgswap --- templates/shortcodes/imgswap.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'templates/shortcodes/imgswap.html') diff --git a/templates/shortcodes/imgswap.html b/templates/shortcodes/imgswap.html index 80a3b74..a6f7b83 100644 --- a/templates/shortcodes/imgswap.html +++ b/templates/shortcodes/imgswap.html @@ -45,7 +45,9 @@ {%- if not alt %} {%- set alt = img | split(pat=".") | first %} {%- endif %} - + {%- if caption %}
{% endif -%} + {%- if link %}{% endif %}{% if link %}{% endif -%} + {%- if caption %}
{{caption}}
{%- endif %} {%- set img = swap_src | split(pat="/") | last %} {%- set dirtest = swap_src | trim_start_matches(pat="./") %} @@ -92,5 +94,7 @@ {%- if not alt %} {%- set alt = img | split(pat=".") | first %} {%- endif %} - + {%- if caption %}
{% endif -%} + {%- if link %}{% endif %}{% if link %}{% endif -%} + {%- if caption %}
{{caption}}
{%- endif %} -- cgit v1.3.1