
Useful when hosting on a subdirectory. Replaces $BASE_URL by the base_url set in config.toml.
2 lines
164 B
HTML
2 lines
164 B
HTML
<img class="invertable-image" {% if src %}src={{ src | safe | replace(from="$BASE_URL", to=config.base_url) }} {% endif %} {% if alt %}alt="{{ alt }}"{% endif %}/>
|