]> danix's work - danix.xyz-2.git/commit
feat: theme-aware default thumbnails with picture element
authorDanilo M. <redacted>
Sat, 18 Apr 2026 18:03:54 +0000 (20:03 +0200)
committerDanilo M. <redacted>
Sat, 18 Apr 2026 18:03:54 +0000 (20:03 +0200)
commita05ea86f931b17b0599960a6d496af842b527f00
treeed2eb6c89fdccf3b8f2635a551f1b0233adffa91
parent6d3940a381a91f61c87ecb9f01f99c897b1aaf00
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 <redacted>
static/images/default_thumbnail_dark.png [new file with mode: 0644]
static/images/default_thumbnail_light.png [new file with mode: 0644]
themes/danix-xyz-hacker/assets/css/main.css
themes/danix-xyz-hacker/assets/css/main.min.css
themes/danix-xyz-hacker/layouts/partials/article-list-item.html