Skip to content

Breadcrumbs should show the page title, not a guess from the filename - #67

Merged
isaaclins merged 1 commit into
mainfrom
fix/breadcrumb-title
Aug 5, 2026
Merged

Breadcrumbs should show the page title, not a guess from the filename#67
isaaclins merged 1 commit into
mainfrom
fix/breadcrumb-title

Conversation

@isaaclins

Copy link
Copy Markdown
Owner

The last breadcrumb was derived from the filename run through humanize, so it title-cased everything and threw away the title the page actually declares.

Page Before After
/projects/pi-terminal-kit/ Pi terminal kit pi-terminal-kit
/blog/git-wasnt-built-for-agents/ Git wasnt built for agents Git wasn%27t built for agents

The blog case is the one I did not expect: humanizing a slug cannot recover punctuation, so every post title silently lost its apostrophes in the trail.

LinkTitle falls back to Title, so the crumb now matches the heading on the page.

Also deletes two variables at the top of the partial that were computed and never used.

Verified with hugo --gc --minify, zero errors and zero warnings, and by reading the rendered breadcrumb out of three built pages including a section index.

This PR doubles as the first real use of the preview pipeline, so the rendered result should be visible at the preview URL below.

The last crumb was built from the filename run through humanize, which
title-cased it and dropped punctuation. pi-terminal-kit rendered as
"Pi terminal kit" and blog posts lost their apostrophes.

LinkTitle uses the title the page declares, so the crumb now matches the
heading on the page. Also removes two unused variables at the top of the
partial.
Copilot AI lite review requested due to automatic review settings August 5, 2026 07:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-05 16:17 UTC

@isaaclins
isaaclins merged commit f54b0d4 into main Aug 5, 2026
2 checks passed
@isaaclins
isaaclins deleted the fix/breadcrumb-title branch August 5, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants