From 4da7925bf705b5d90c418bf46c6f69653b302853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Rodr=C3=ADguez?= <4986045+alerodrod@users.noreply.github.com> Date: Sat, 30 Sep 2023 23:40:50 +0200 Subject: [PATCH] Fix Breadcrumbs for single pages --- src/layouts/components/Breadcrumbs.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, });