12 Commits (e3bd75e9e384d03b070bb8bdab3c42aef645ad23)

Author SHA1 Message Date
welpo c47198facf
🎨 style: add dash to toggle identifier 2 years ago
welpo 0e1a5143c0
🐛 fix: generate random id for multilingual quotes
Fix #82
2 years ago
welpo dd73e52729
feat: add custom quotation marks for multilingual quotes
Allows users to specify custom opening and closing quotation marks for
the multilingual quote shortcode.
The quotation marks can be configured per language in config.toml.
If not specified, default quotation marks will be used.
2 years ago
welpo ab29511d5e
feat: add multilingual quote shortcode 2 years ago
welpo b5b50cdefb
🐛 fix: handle missing image metadata gracefully 2 years ago
welpo b841969a8f
feat(shortcodes): update image path retrieval and dimensions in shortcodes
- Use `get_url` function to generate correct image paths
- Retrieve image dimensions with `get_image_metadata` function
- Update shortcodes: dimmable_image, dual_theme_image, and invertible_image

These changes reduce layout shifts.
2 years ago
welpo b3dc5396b4
feat: add dual image support for switching themes 2 years ago
welpo 4e4021da5d
feat: format references with custom shortcode
Uses hanging indent for a References section.
2 years ago
welpo 799b31d403
✏️ fix: minor typo 2 years ago
welpo bd8dd87cd5
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…)
2 years ago
welpo 9de7a7a02d
feat: allow realtive paths in images
Useful when hosting on a subdirectory. Replaces $BASE_URL by the
base_url set in config.toml.
2 years ago
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") }}
2 years ago