21 Commits

Author SHA1 Message Date
welpo
3cf9e3ad8d
feat(multilingual-quote): allow missing author 2023-09-06 14:54:08 +02:00
Óscar
78f97e17b4
♻️ refactor(translation): introduce translation macro (#129) 2023-09-01 23:29:11 +02:00
Óscar
1c3db86b75
feat(image shortcodes): add lazy loading (#116)
Additionally sets the `alt` parameters as optional and cleans HTML output.
2023-08-26 01:57:19 +02:00
Óscar
151063d74b
feat(shortcode): add spoiler shortcode (#113) 2023-08-24 14:27:33 +02:00
welpo
07ceddcc00
feat: enhance Table of Contents
- Introduce `toc_ignore_pattern` to ignore specific headers based on regex.
- Allow custom ToC placement with shortcode or "<!-- toc -->" marker.
- Increase max depth for ToC to 4.
- Update Documentation for the above features.
 - Move ToC generation to a macro file.
2023-08-14 15:08:22 +02:00
welpo
fb0dea0106
feat: add wide container shortcode 2023-08-11 23:36:59 +02:00
welpo
5250576744
💡 chore: add comments explaining use of get_random 2023-08-10 17:26:39 +02:00
welpo
7ccd71736e
feat: add 2 interactive image shortcodes
- `image_hover` changes image on mouse hover.

- `image_toggler` swaps image on click.
2023-08-09 18:36:45 +02:00
welpo
fd50204e32
feat: add full-width image option to shortcodes
Closes #85
2023-07-05 02:43:07 +02:00
welpo
c47198facf
🎨 style: add dash to toggle identifier 2023-06-16 13:49:46 +02:00
welpo
0e1a5143c0
🐛 fix: generate random id for multilingual quotes
Fix #82
2023-06-16 02:09:55 +02:00
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.
2023-06-07 01:50:43 +02:00
welpo
ab29511d5e
feat: add multilingual quote shortcode 2023-06-05 23:22:17 +02:00
welpo
b5b50cdefb
🐛 fix: handle missing image metadata gracefully 2023-04-16 18:06:20 +02:00
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.
2023-04-16 03:21:41 +02:00
welpo
b3dc5396b4
feat: add dual image support for switching themes 2023-02-25 22:28:43 +01:00
welpo
4e4021da5d
feat: format references with custom shortcode
Uses hanging indent for a References section.
2023-02-25 02:00:42 +01:00
welpo
799b31d403
✏️ fix: minor typo 2023-02-18 03:24:58 +01:00
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…)
2023-02-16 00:22:31 +01:00
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.
2023-02-10 13:25:55 +01:00
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