mirror of
https://github.com/10h30/astroplate.git
synced 2026-06-05 15:08:00 +09:00
Fix Breadcrumbs for single pages
This commit is contained in:
committed by
GitHub
parent
90dd21b97c
commit
4da7925bf7
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user