Nine packs: the rest of the WordPress list #29

Merged
jcoffey-dev merged 1 commits from packs/the-rest into main 2026-10-14 21:24:54 +00:00
Owner

Stacked on #28: this branch has #28's commit too. Merge #28 first, or this one alone takes both.

Pack What it does
reviews Star ratings with the average and count, as a section or under a product ({{ template "reviews" . }}). A product's reviews give search engines AggregateRating. A business's reviews of itself give none, since search engines ignore those.
glossary Terms A to Z from data/glossary.yaml, a letter row to jump with, each term linkable, "See also" links, DefinedTermSet.
logo-wall A still grid of logos in three sizes. Muted logos are gray, and light outlines in dark mode. light_tiles puts logos that come on white onto white tiles.
videos A video library from your own files: a page per video with captions and transcript, /videos/ with posters, a feed, a Latest videos section, VideoObject. Nothing embedded from YouTube.
directory Entries grouped by category ("Other" last), a category row, and a page each with address and map link, phone, email and website.
link-in-bio layout: links: a photo, a line of text and big buttons, with no menu.
status-page Components in data/status.yaml, an overall line that follows from them, open and past incidents (a collection with a feed), a page per incident.
coming-soon layout: holding: name, headline, launch date, text, an optional form and links, with no menu.
timeline Dates down a line, each with a title, Markdown text and an optional picture.

Engine:

  • New template functions sortBy, ratings and stars.
  • formatDate now takes a date with a time (2026-09-01 07:40), as front matter date: does.
  • now is in the site's timezone, so "As of 1:40 PM" is local time.

Gotcha found on the way: a layout can drop the site menu by redefining nav, but Go keeps the old template when the new body is empty. The two no-menu layouts define it as {{ "" }}.

Checked: gofmt, vet and go test ./... pass locally, with a build test for each pack (plus checks that the no-menu pages really have no menu) and unit tests for the new functions. All nine looked at in Chrome on a demo site, light and dark, and the busiest at phone width. Fixed from that: muted logos in dark mode, and the status page's time zone.

Stacked on #28: this branch has #28's commit too. Merge #28 first, or this one alone takes both. | Pack | What it does | |---|---| | reviews | Star ratings with the average and count, as a section or under a product (`{{ template "reviews" . }}`). A product's reviews give search engines AggregateRating. A business's reviews of itself give none, since search engines ignore those. | | glossary | Terms A to Z from `data/glossary.yaml`, a letter row to jump with, each term linkable, "See also" links, DefinedTermSet. | | logo-wall | A still grid of logos in three sizes. Muted logos are gray, and light outlines in dark mode. `light_tiles` puts logos that come on white onto white tiles. | | videos | A video library from your own files: a page per video with captions and transcript, `/videos/` with posters, a feed, a Latest videos section, VideoObject. Nothing embedded from YouTube. | | directory | Entries grouped by category ("Other" last), a category row, and a page each with address and map link, phone, email and website. | | link-in-bio | `layout: links`: a photo, a line of text and big buttons, with no menu. | | status-page | Components in `data/status.yaml`, an overall line that follows from them, open and past incidents (a collection with a feed), a page per incident. | | coming-soon | `layout: holding`: name, headline, launch date, text, an optional form and links, with no menu. | | timeline | Dates down a line, each with a title, Markdown text and an optional picture. | Engine: - New template functions `sortBy`, `ratings` and `stars`. - `formatDate` now takes a date with a time (`2026-09-01 07:40`), as front matter `date:` does. - `now` is in the site's timezone, so "As of 1:40 PM" is local time. Gotcha found on the way: a layout can drop the site menu by redefining `nav`, but Go keeps the old template when the new body is empty. The two no-menu layouts define it as `{{ "" }}`. Checked: gofmt, vet and `go test ./...` pass locally, with a build test for each pack (plus checks that the no-menu pages really have no menu) and unit tests for the new functions. All nine looked at in Chrome on a demo site, light and dark, and the busiest at phone width. Fixed from that: muted logos in dark mode, and the status page's time zone.
jcoffey-dev added 2 commits 2026-10-14 20:41:14 +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).
Nine packs: the rest of the list
ci / editor-ui (pull_request) Successful in 31s
ci / go (pull_request) Successful in 2m11s
56d6dbbfc3
reviews (star ratings with the average, as a section or under a product,
which then gets AggregateRating), glossary (A to Z with a letter row, each
term linkable, DefinedTermSet), logo-wall (a still grid, muted logos become
light outlines in dark mode, white tiles on request), videos (a library from
your own files: page per video with captions and transcript, list, feed,
Latest videos section, VideoObject), directory (entries grouped by category
with a page each), link-in-bio (one page of big buttons, no menu),
status-page (components from data/status.yaml, incidents with a feed),
coming-soon (a holding page with a launch date and a form, no menu) and
timeline (dates down a line).

Template functions: sortBy, ratings and stars. formatDate takes a date with
a time, as front matter's date: does, and now is in the site's timezone.

A layout can leave out the site's menu by redefining nav, but only with a
non-empty body: Go keeps the old template when the new one is empty.
jcoffey-dev merged commit c03aac2c1e into main 2026-10-14 21:24:54 +00:00
jcoffey-dev deleted branch packs/the-rest 2026-10-14 21:24:54 +00:00
Sign in to join this conversation.