mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
✨ 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:
parent
4bb7435eab
commit
9de7a7a02d
2 changed files with 2 additions and 2 deletions
|
@ -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 %}/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue