Add pagination (10 posts/page), category-scoped prev/next, hide share footer nav; demo link in README
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Trilium Share – Gruvbox Blog System
|
||||
|
||||
[](LICENSE)
|
||||
[](https://richard.familie-zink.org)
|
||||
[](https://github.com/TriliumNext/Trilium)
|
||||
[](https://github.com/morhetz/gruvbox)
|
||||
[](https://opencode.ai)
|
||||
@@ -25,6 +26,8 @@ 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.
|
||||
- **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.
|
||||
- **Digital Garden**: `state` labels (Seed → Evergreen, Draft, Review) rendered as badges and
|
||||
colour-coded growth tables.
|
||||
@@ -230,11 +233,15 @@ server {
|
||||
## How the generator works
|
||||
|
||||
- Walks the blog root and collects notes with `publish=true`.
|
||||
- Writes the **index** (article cards), **category pages** (sub-category chips + articles,
|
||||
respecting a `<!-- blog:articles -->` marker so your hand-written intro text is kept),
|
||||
**tag pages** and the **tags overview**.
|
||||
- Writes the **index** (first 10 posts) plus page notes (`blog-2`, `blog-3`, …) with
|
||||
prev/next navigation between the pages.
|
||||
- Writes **category pages** (sub-category chips + articles, respecting a
|
||||
`<!-- blog:articles -->` marker so your hand-written intro text is kept), paginated the
|
||||
same way; page notes live in the `.blog` system note and are tagged with `blogPagedFor`.
|
||||
- Writes **tag pages** and the **tags overview**.
|
||||
- Regenerates `feed.xml` (RSS), `sitemap.xml`, `state_map` (garden states) and `blog_data`
|
||||
(search index used by the header search + prev/next).
|
||||
(search index with title, summary, tags and category – used by the header search and the
|
||||
category-scoped prev/next).
|
||||
- Sets `shareDescription` on every published note from its `summary`.
|
||||
|
||||
## Customisation
|
||||
|
||||
Reference in New Issue
Block a user