chore: only set this if not showCurrentPage is set.

This commit is contained in:
Aaron Pham 2024-08-03 04:25:46 -04:00 committed by GitHub
parent c73e64e1d2
commit fac3ef796e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,7 +153,7 @@ export default ((opts?: Partial<BreadcrumbOptions>) => {
crumbs.push(crumb)
}
if (isTagPath) {
if (isTagPath && !options.showCurrentPage) {
crumbs.push({ displayName: slugParts.at(-1) ?? "", path: "" })
}