diff --git a/src/components/Breadcrumb.astro b/src/components/Breadcrumb.astro index 19ab7c6..46ca902 100644 --- a/src/components/Breadcrumb.astro +++ b/src/components/Breadcrumb.astro @@ -8,7 +8,7 @@ let paths: string[] if (pathname === "/") { paths = ["~"] } else { - paths = ["~", ...pathname.split("/").slice(1)] + paths = ["~", ...pathname.split("/").filter(x => x)] } function getLink(path: string): NavLink {