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).
9 lines
672 B
CSS
9 lines
672 B
CSS
/* The breadcrumbs pack. Colors come from the theme's variables. */
|
|
.crumbs { margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
|
|
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; }
|
|
.crumbs li { display: inline-flex; align-items: baseline; min-width: 0; }
|
|
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
|
|
.crumbs a { color: var(--muted); text-decoration: none; }
|
|
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
|
|
.crumbs [aria-current] { color: var(--text); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|