feat: add dual image support for switching themes

This commit is contained in:
welpo
2023-02-25 22:28:43 +01:00
parent 1496f0cf73
commit b3dc5396b4
5 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
<img src="{{ light_src | safe | replace(from="$BASE_URL" , to=config.base_url) }}" {% if alt %}alt="{{ alt }}" {% endif %} class="img-light">
<img src="{{ dark_src | safe | replace(from="$BASE_URL" , to=config.base_url) }}" {% if alt %}alt="{{ alt }}" {% endif %} class="img-dark">