mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00

Useful when hosting on a subdirectory. Replaces $BASE_URL by the base_url set in config.toml.
1 line
164 B
HTML
1 line
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 %}/>
|