From c73e64e1d29c48548dd09095dbd6e03b22398149 Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Sat, 3 Aug 2024 03:45:45 -0400 Subject: [PATCH] chore(breadcrumbs): Add slug for breadcrumbs on tag page Signed-off-by: Aaron Pham --- quartz/components/Breadcrumbs.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quartz/components/Breadcrumbs.tsx b/quartz/components/Breadcrumbs.tsx index ddcdcd5bc..8fdfbfbd3 100644 --- a/quartz/components/Breadcrumbs.tsx +++ b/quartz/components/Breadcrumbs.tsx @@ -153,6 +153,10 @@ export default ((opts?: Partial) => { crumbs.push(crumb) } + if (isTagPath) { + crumbs.push({ displayName: slugParts.at(-1) ?? "", path: "" }) + } + // Add current file to crumb (can directly use frontmatter title) if (options.showCurrentPage && slugParts.at(-1) !== "index") { crumbs.push({