forked from deepStateMirrors/tabi
✨ feat: add dual image support for switching themes
This commit is contained in:
parent
1496f0cf73
commit
b3dc5396b4
5 changed files with 27 additions and 1 deletions
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">
|
Loading…
Add table
Add a link
Reference in a new issue