From 6f1fe0ac43dc50bb5defe3df6118df6261089925 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Wed, 14 Oct 2026 13:28:35 -0700 Subject: [PATCH] Three packs: breadcrumbs, author box and series MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit breadcrumbs puts a Home › Articles › This page trail above a page's title and gives search engines the same trail (BreadcrumbList) once installed. author-box shows who wrote an article, at its end, from data/authors.yaml: the author its front matter names, by id or name, else the site's author. series shows "Part 2 of 5" in a series, every part, and the previous and next part; parts follow their part: numbers, or go oldest first. Two template functions they're built on: trail . (the pages above a page, by address) and series . (a page's series, in reading order). --- docs/packs.md | 12 ++- docs/themes.md | 13 +++ internal/build/funcs.go | 4 + internal/build/schema.go | 94 +++++++++++++++++++++ internal/packs/bundled_test.go | 42 +++++++++ packs/author-box/LICENSE | 21 +++++ packs/author-box/README.md | 12 +++ packs/author-box/assets/author-box.css | 14 +++ packs/author-box/pack.yaml | 28 ++++++ packs/author-box/partials/author-box.html | 22 +++++ packs/breadcrumbs/LICENSE | 21 +++++ packs/breadcrumbs/README.md | 13 +++ packs/breadcrumbs/assets/breadcrumbs.css | 8 ++ packs/breadcrumbs/pack.yaml | 19 +++++ packs/breadcrumbs/partials/breadcrumbs.html | 9 ++ packs/packs.go | 2 +- packs/series/LICENSE | 21 +++++ packs/series/README.md | 12 +++ packs/series/assets/series.css | 10 +++ packs/series/pack.yaml | 29 +++++++ packs/series/partials/series.html | 19 +++++ 21 files changed, 422 insertions(+), 3 deletions(-) create mode 100644 packs/author-box/LICENSE create mode 100644 packs/author-box/README.md create mode 100644 packs/author-box/assets/author-box.css create mode 100644 packs/author-box/pack.yaml create mode 100644 packs/author-box/partials/author-box.html create mode 100644 packs/breadcrumbs/LICENSE create mode 100644 packs/breadcrumbs/README.md create mode 100644 packs/breadcrumbs/assets/breadcrumbs.css create mode 100644 packs/breadcrumbs/pack.yaml create mode 100644 packs/breadcrumbs/partials/breadcrumbs.html create mode 100644 packs/series/LICENSE create mode 100644 packs/series/README.md create mode 100644 packs/series/assets/series.css create mode 100644 packs/series/pack.yaml create mode 100644 packs/series/partials/series.html diff --git a/docs/packs.md b/docs/packs.md index 390bd7f..fb7a35a 100644 --- a/docs/packs.md +++ b/docs/packs.md @@ -27,6 +27,10 @@ Content-Security-Policy as the site's own. file. - `remove` takes the pack's files out and forgets it. - `list` also names the packs that come with HotDog CMS: + - **author-box**: who wrote an article, at its end, with a photo, bio + and links, from `data/authors.yaml`; + - **breadcrumbs**: a Home › Articles › This page trail above a page's + title, and the same trail for search engines; - **calendar**: events, an upcoming-events section and a feed people subscribe to (see [events.md](events.md)); - **changelog**: release notes, a page per release and all of them on @@ -53,6 +57,8 @@ Content-Security-Policy as the site's own. - **recipes**: ingredients, steps, times and servings; - **related-posts**: at the end of an article, the ones sharing the most tags with it; + - **series**: articles in parts, with "Part 2 of 5", every part listed + and links to the previous and next part; - **share-links**: plain share links for Mastodon, Bluesky, LinkedIn and email, with no tracking; - **shop**: a product catalog with a page per product, each Buy button @@ -66,8 +72,10 @@ Content-Security-Policy as the site's own. **Search engines.** The faq, location-and-hours, team, recipes, jobs and shop packs are also written as schema.org data (FAQPage, LocalBusiness, Person, -Recipe, JobPosting, Product), which search engines use for richer results. A pack can't carry -the `