✨ feat: add dual image support for switching themes
This commit is contained in:
2
templates/shortcodes/dual_theme_image.html
Normal file
2
templates/shortcodes/dual_theme_image.html
Normal 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">
|
Reference in New Issue
Block a user