diff --git a/_includes/img.html b/_includes/img.html index 874f6d6..b1ea4f3 100644 --- a/_includes/img.html +++ b/_includes/img.html @@ -1,13 +1,7 @@ -{% if 'readthedocs.org' in config.docs_dir %} -{% set assets = '/en/latest/assets' %} -{% else %} -{% set assets = '/assets' %} -{% endif %} - {% if 'http' in url %} {% set doc_url = url %} {% else %} -{% set doc_url = assets + '/images/' + url %} +{% set img_url = config.assets_dir + '/images/' + url %} {% endif %}
@@ -15,9 +9,9 @@ {% elif doc_url %} - + {% endif %} -