diff --git a/templates/shortcodes/image.html b/templates/shortcodes/image.html index 410be76..091eeb8 100644 --- a/templates/shortcodes/image.html +++ b/templates/shortcodes/image.html @@ -1,3 +1,8 @@ {% if src %} + {# If the image's URL is internal to the site... #} + {% if src is not starting_with("http") %} + {# ... then prepend the site's base URL to the image's URL. #} + {% set src = config.base_url ~ src %} + {% endif %} {% endif %}