diff options
-rw-r--r-- | templates/shortcodes/img.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html index 1b960c4..320ac84 100644 --- a/templates/shortcodes/img.html +++ b/templates/shortcodes/img.html @@ -5,7 +5,7 @@ {% else -%} <figure style="float: {{ float }};"> {% endif -%} - <a href="/{{ url }}"> + <a href="{% if link %}{{ link }}{% else %}/{{ url }}{% endif %}"> <img src="{{ image.url }}" alt="{{ alt }}" /> </a> {% if caption -%} |