diff --git a/_includes/img.html b/_includes/img.html
index 4dd8b8e..f680758 100644
--- a/_includes/img.html
+++ b/_includes/img.html
@@ -1,4 +1,8 @@
+{% if 'readthedocs.org' in config.docs_dir %}
{% set assets = '/en/latest/assets' %}
+{% else %}
+{% set assets = '/assets' %}
+{% endif %}
{% if id %}