Merge pull request #26 from welpo/feature/relative-image-paths

 feat: allow relative paths in images
main
Óscar 2 years ago committed by GitHub
commit 3ee94b4ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,7 +74,7 @@
</section>
</div>
<div class="image-container-home">
<img alt="the owner" class="banner-home-img" src="{{ desc.img }}" />
<img alt="the owner" class="banner-home-img" src={{ desc.img | safe | replace(from="$BASE_URL", to=config.base_url) }} />
</div>
</div>
{% endmacro page_desc %}

@ -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…
Cancel
Save