From 35fc12c8dd03c6121dbe9340eb9d18fbced22a56 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 11 Oct 2021 19:04:38 +1100 Subject: [PATCH] Fix image include --- _includes/img.html | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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 %} -