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).
20 lines
755 B
YAML
20 lines
755 B
YAML
name: breadcrumbs
|
||
version: 1.0.0
|
||
title: Breadcrumbs
|
||
description: A "Home › Articles › This page" trail above a page's title, and the same trail for search engines.
|
||
license: MIT
|
||
author: Coffey Labs LLC
|
||
notes: |
|
||
Add this line to the layouts that should show the trail, such as
|
||
layouts/page.html and layouts/article.html, above the page's title:
|
||
|
||
{{ template "breadcrumbs" . }}
|
||
|
||
The trail is the pages above this one, by address: /recipes/bread/rye/
|
||
shows Home › Recipes › Bread › Rye when /recipes/ and /recipes/bread/
|
||
exist. It isn't shown on the home page.
|
||
|
||
Search engines get the trail too (BreadcrumbList), on every page, as long
|
||
as the pack is installed and partials/schema.html has the pageData line
|
||
(see docs/packs.md).
|