alexohneander-zola/templates/shortcodes/invertable_image.html
welpo 389c724fe0
feat: add invertable image shortcode
Useful to invert diagrams, graphs, etc. in dark theme.
To use it in a markdown file, add a line like:
{{ invertable_image(src="/img.png", alt="alt text") }}
2023-02-10 02:36:23 +01:00

2 lines
110 B
HTML

<img class="invertable-image" {% if src %}src="{{ src }}"{% endif %} {% if alt %}alt="{{ alt }}"{% endif %}/>