Files
jcoffey-dev 6f1fe0ac43
ci / go (pull_request) Successful in 48s
ci / editor-ui (pull_request) Successful in 1m11s
Three packs: breadcrumbs, author box and series
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).
2026-10-14 13:28:35 -07:00

560 B

Author box pack

Who wrote an article, at its end: a photo (or their initial), their name and role, a short bio and their links, from data/authors.yaml.

hotdog-cms pack add author-box

Add {{ template "author-box" . }} to layouts/article.html after {{ .Content }}. An article shows the author its front matter names (author: sam, or authors: [sam, ana]); without one, the author whose name is the site's author:, so a site with one writer needs no front matter. Authors with a page: link to it, so the box pairs well with the team pack.