summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_includes/image.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_includes/image.html b/_includes/image.html
index 5aa729b..35bd4c3 100644
--- a/_includes/image.html
+++ b/_includes/image.html
@@ -2,7 +2,7 @@
{% if {{include.url}} %}
<a class="no_icon" target="_blank" rel="noopener" href="{{include.url}}">
{% endif %}
- <img class="docimage" src="../assets/img/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />
+ <img class="docimage" src="{{include.file | prepend: '/assets/img/' | relative_url }}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />
{% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %}
<figcaption>
{{include.caption}}