diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-18 20:03:54 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-18 20:03:54 +0200 |
| commit | a05ea86f931b17b0599960a6d496af842b527f00 (patch) | |
| tree | ed2eb6c89fdccf3b8f2635a551f1b0233adffa91 /static/images | |
| parent | 6d3940a381a91f61c87ecb9f01f99c897b1aaf00 (diff) | |
| download | danixxyz-a05ea86f931b17b0599960a6d496af842b527f00.tar.gz danixxyz-a05ea86f931b17b0599960a6d496af842b527f00.zip | |
feat: theme-aware default thumbnails with picture element
- Use HTML <picture> element with prefers-color-scheme media query
- Fallback dark thumbnail via content: url() CSS for theme-light class
- Automatically displays light/dark thumbnails based on user theme
- Articles without custom images now show default thumbnails
- Maintains all existing hover effects and type badges
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'static/images')
| -rw-r--r-- | static/images/default_thumbnail_dark.png | bin | 0 -> 1489452 bytes |
| -rw-r--r-- | static/images/default_thumbnail_light.png | bin | 0 -> 1329940 bytes |
2 files changed, 0 insertions, 0 deletions
diff --git a/static/images/default_thumbnail_dark.png b/static/images/default_thumbnail_dark.png Binary files differnew file mode 100644 index 0000000..c054b7a --- /dev/null +++ b/static/images/default_thumbnail_dark.png diff --git a/static/images/default_thumbnail_light.png b/static/images/default_thumbnail_light.png Binary files differnew file mode 100644 index 0000000..7bf35bc --- /dev/null +++ b/static/images/default_thumbnail_light.png |
