From b248241af0f52f626098cb5b9eca6c0f3a298266 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sun, 20 Sep 2026 00:13:00 +0000 Subject: [PATCH] Card images: hierarchical setting, compact-card image, explicit card-mode override --- README.md | 2 +- docs/backend.md | 4 +- docs/content-model.md | 6 + docs/design-principles.md | 2 +- docs/editing.md | 4 +- frontend/src/BannerEditor.vue | 219 ++++++++++++++++++++++++++++++- frontend/src/StructureTree.vue | 6 +- frontend/src/assets/pagerite.css | 189 ++++++++++++++++++++------ pagerite/api.py | 68 +++++++++- pagerite/data.py | 10 ++ pagerite/views.py | 189 +++++++++++++++++++++----- 11 files changed, 609 insertions(+), 90 deletions(-) diff --git a/README.md b/README.md index 7f1f2d8..ca59d66 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ The worst case scenario when a hacker gains access to your admin accounts (say i **Theme just every part to your liking.** Themes, banner designs and page transitions are included — pick one from the site editor or copy a folder and make it yours. Several high quality fonts are included among with other assets: your site never phones a third party or us for anything. And if after all you need to customize, additional site and banner code may be provided by the admin panel. -**Search engines and social cards come free.** Every page gets a proper description, canonical link and Open Graph/Twitter card metadata derived from the article — including a share image picked from your own figures — without a single "SEO plugin". Category index pages, if you wish to have those, also get their sub pages shown automatically in card format. +**Search engines and social cards come free.** Every page gets a proper description, canonical link and Open Graph/Twitter card metadata derived from the article — including a card image picked from your own figures — without a single "SEO plugin". Category index pages, if you wish to have those, also get their sub pages shown automatically in card format. ![Graphs showing visitor stats and navigation across site branches.](https://git.zi.fi/LeoVasanko/pagerite/raw/branch/main/docs/screenshots/analytics.webp) _You can see your readers. Built-in analytics need no cookies and no third-party tracker: visits, referers, reading time and a live map of how people move between your pages, plus separate ledgers for crawlers and the abusers probing for wordpress PHP files — who are, of course, wasting their time here._ diff --git a/docs/backend.md b/docs/backend.md index 38e31a8..6adf675 100644 --- a/docs/backend.md +++ b/docs/backend.md @@ -34,11 +34,11 @@ markdown-it-py renderer (html passthrough + attrs, footnote, deflist, tasklists, The shared page layout as an html5tagger `Template` with placeholders (`Title`, `Brand`, `Banner`, `Nav`, `Sidebar`, `Main`), nav rendering straight from the `Data.menu` tree (siblings sorted by `Node.order`; nav links to content-less labels point at their first child via `first_leaf`, the first published descendant with content), and page/404 rendering. -Content pages get SEO/social meta (description, canonical link, Open Graph + twitter card) from heuristics over the rendered article: the description is the first paragraph's text, the share image prefers a `{.hero}`-classed image, then the first raster ``, then the first SVG; the first `