Files
hotdog-cms/packs/breadcrumbs/README.md
T
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

576 B
Raw Permalink Blame History

Breadcrumbs pack

A trail above a page's title, from the home page down to the page: Home › Recipes › Bread › Rye. Each step links to the page at that address, so a visitor deep in a site can get back up, and search engines show the trail in results instead of the bare address.

hotdog-cms pack add breadcrumbs

Then add {{ template "breadcrumbs" . }} to the layouts that should show it. The search engine data (BreadcrumbList) is written for every page once the pack is installed. The docs pack has a trail of its own, so leave it out of the docs layouts.