diff --git a/src/layouts/components/Breadcrumbs.astro b/src/layouts/components/Breadcrumbs.astro index a04953f..ed67ed1 100644 --- a/src/layouts/components/Breadcrumbs.astro +++ b/src/layouts/components/Breadcrumbs.astro @@ -16,7 +16,7 @@ paths.forEach((label: string, i: number) => { const href = `/${paths.slice(0, i + 1).join("/")}`; label !== "page" && parts.push({ - label: humanize(label.replace(/[-_]/g, " ")) || "", + label: humanize(label.replace(".html", "").replace(/[-_]/g, " ")) || "", href, "aria-label": Astro.url.pathname === href ? "page" : undefined, });