Thumbnails: prefer *_thumb child note, fallback to first image; round embedded images and inline code; theme figcaptions

This commit is contained in:
trilium-share-gruvbox
2026-08-28 14:46:47 +02:00
parent 9a20dfa2e1
commit 302e48391c
3 changed files with 26 additions and 3 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ no external dependencies (except `highlight.js`, vendored in `lib/`).
- Gruvbox light/dark theme for the share, with a theme toggle in the header.
- Blog index, category pages, sub-categories, tags and tag overview.
- **Article thumbnails**: each post card shows the first image of the article on the left
(max 256×256, bounded by the teaser height), summary on the right, lazy-loaded.
(bounded by the teaser height), summary on the right, lazy-loaded. If an article has a child
note named `*_thumb.*` (e.g. `ngc281_thumb.jpg`), that image is used instead ideal for
serving small pre-made thumbnails.
- **Pagination**: 10 posts per page on the index and category pages, with prev/next
navigation between the pages; article prev/next links stay within the article's category.
- Article metadata: date, category, summary, tags, prev/next navigation, reading time.