From edbc2cc01e508f1572e06daf9442f8b8010bf89a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 21 Sep 2020 22:58:39 +1000 Subject: [PATCH] Custom code for assets directory - If deployed on READTHEDOCS, prefix some extra stuffs --- _includes/img.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/_includes/img.html b/_includes/img.html index 58a1cc6..bfb8c91 100644 --- a/_includes/img.html +++ b/_includes/img.html @@ -1,11 +1,17 @@ +{% if READTHEDOCS %} +{% set assets = '/en/latest/assets' %} +{% else %} +{% set assets = '/assets' %} +{% endif %} +
{% if id %} {% elif url %} - + {% endif %} -