Three packs: breadcrumbs, author box and series #28

Merged
jcoffey-dev merged 1 commits from packs/breadcrumbs-author-series into main 2026-10-14 21:24:53 +00:00
Owner

The next three from the WordPress plugin list, all for writing.

  • breadcrumbs: a Home › Articles › This page trail above a page's title, built from the pages above it by address. Once the pack is installed, search engines get the same trail as BreadcrumbList data on every page.
  • author-box: who wrote an article, at its end: photo or initial, name and role, a short bio and links, from data/authors.yaml. The box uses the author the front matter names (author: or authors:, by id or name). Without one it uses the site's author:, so a site with one writer needs no front matter.
  • series: "Part 2 of 5 in Sourdough basics", every part listed with the current one marked, and previous/next part links. Parts follow their part: numbers when every part has one, otherwise oldest first. If series is added as a taxonomy, the series name links to its page.

New template functions: trail . and series ., documented in docs/themes.md.

Checked: gofmt, vet and go test ./... pass locally, with a bundled-pack test for each pack. Looked at in Chrome on a demo site, light and dark. One fix from that: the series box was first a <details>, and the starter's collapsible-block styling boxed it a second time inside article text. It's a plain list now.

The next three from the WordPress plugin list, all for writing. - **breadcrumbs**: a Home › Articles › This page trail above a page's title, built from the pages above it by address. Once the pack is installed, search engines get the same trail as BreadcrumbList data on every page. - **author-box**: who wrote an article, at its end: photo or initial, name and role, a short bio and links, from `data/authors.yaml`. The box uses the author the front matter names (`author:` or `authors:`, by id or name). Without one it uses the site's `author:`, so a site with one writer needs no front matter. - **series**: "Part 2 of 5 in Sourdough basics", every part listed with the current one marked, and previous/next part links. Parts follow their `part:` numbers when every part has one, otherwise oldest first. If `series` is added as a taxonomy, the series name links to its page. New template functions: `trail .` and `series .`, documented in docs/themes.md. Checked: gofmt, vet and `go test ./...` pass locally, with a bundled-pack test for each pack. Looked at in Chrome on a demo site, light and dark. One fix from that: the series box was first a `<details>`, and the starter's collapsible-block styling boxed it a second time inside article text. It's a plain list now.
jcoffey-dev added 1 commit 2026-10-14 20:28:55 +00:00
Three packs: breadcrumbs, author box and series
ci / go (pull_request) Successful in 48s
ci / editor-ui (pull_request) Successful in 1m11s
6f1fe0ac43
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).
jcoffey-dev merged commit 54fd97dd1f into main 2026-10-14 21:24:53 +00:00
jcoffey-dev deleted branch packs/breadcrumbs-author-series 2026-10-14 21:24:53 +00:00
Sign in to join this conversation.