✨ feat: add dimmable-image shortcode for dark theme
Reduces contrast and brightness of images when the dark theme is active. Useful when invertable-image is not appropriate (photographs, paintings, colour drawings…)
This commit is contained in:
1
templates/shortcodes/dimmable_image.html
Normal file
1
templates/shortcodes/dimmable_image.html
Normal file
@@ -0,0 +1 @@
|
||||
<img class="dimmable-image" {% if src %}src={{ src | safe | replace(from="$BASE_URL", to=config.base_url) }} {% endif %} {% if alt %}alt="{{ alt }}"{% endif %}/>
|
Reference in New Issue
Block a user