Skip to main content

Books

Section that renames its own URL via front matter, to exercise breadcrumb ancestor links.

This section demonstrates a Hugo section that renames its own URL via the url front matter field. The content still lives under content/book/, but this list page renders at /books/.

Breadcrumbs on pages inside this section must link back to /books/, not to /book (the raw content-folder path), since /book is not a page that exists on this site.

Example Book

This page lives under content/book/example-book.md, so its own permalink stays /book/example-book/ (child pages are not affected by the parent section’s url front matter). Its breadcrumb ancestor for “Books”, however, must link to /books/, matching the section’s actual rendered URL.