You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes an issue where images added with the `image` shortcode are visible via `zola serve` but not `zola build`.
It works by prepending the site's base URL to image names so `http://127.0.0.1:1111/flower.png` and `https://www.awesomesite.com/flower.png` are both valid paths. Right now, only the former is a valid path.
Fixespawroman#36.
<imgsrc="{{ src | safe }}"{%ifalt%}alt="{{ alt }}"{%endif%}class="{% if position %}{{ position }}{% else -%} center {%- endif %}" {%-ifstyle%}style="{{ style | safe }}" {%-endif%}/>
2
+
<imgsrc="{{ config.base_url ~ src | safe }}"{%ifalt%}alt="{{ alt }}"{%endif%}class="{% if position %}{{ position }}{% else -%} center {%- endif %}" {%-ifstyle%}style="{{ style | safe }}" {%-endif%}/>
0 commit comments