✨ feat: allow realtive paths in images
Useful when hosting on a subdirectory. Replaces $BASE_URL by the base_url set in config.toml.
This commit is contained in:
@@ -1 +1 @@
|
||||
<img class="invertable-image" {% if src %}src="{{ src }}"{% endif %} {% if alt %}alt="{{ alt }}"{% endif %}/>
|
||||
<img class="invertable-image" {% if src %}src={{ src | safe | replace(from="$BASE_URL", to=config.base_url) }} {% endif %} {% if alt %}alt="{{ alt }}"{% endif %}/>
|
||||
|
Reference in New Issue
Block a user