Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit eb9689e

Browse files
committed
bring back comment
1 parent 569ae0c commit eb9689e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pcweb/components/docpage/navbar/inkeep.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def add_hooks(self) -> list[str | rx.Var]:
114114
if (matchUrl(pattern)) {{
115115
return [
116116
...(source.tabs ?? []),
117+
// If the first breadcrumb is the same as the tab, use the remaining breadcrumbs
118+
// This is only if you don't want breadcrumbs to include current tab, e.g. just "Blog Post" instead of "Blogs > Blog Post" in the Blogs tab
119+
// The tab type accepts a string or an object with a breadcrumbs property i.e. breadcrumbs shown for this source in that tab
117120
[
118121
tab,
119122
{{ breadcrumbs: breadcrumbs[0] === tab ? breadcrumbs.slice(1) : breadcrumbs }},

0 commit comments

Comments
 (0)