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/img.html | 4 +++- templates/shortcodes/imgswap.html | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html index ac3ba6b..108b16c 100644 --- a/templates/shortcodes/img.html +++ b/templates/shortcodes/img.html @@ -44,4 +44,6 @@ {%- if not alt %} {%- set alt = img | split(pat=".") | first %} {%- endif %} - +{%- if caption %}
{% endif -%} +{%- if link %}{% endif %}{% if link %}{% endif -%} +{%- if caption %}
{{caption}}
{%- endif %} 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