Skip to content

Commit a3bb27d

Browse files
committed
add highlight to contribute in nav
1 parent 0640110 commit a3bb27d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Layout/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export default function Layout({
4242
.filter((s) => s !== '')
4343
.join(' - ');
4444

45+
const current = meta.title.includes('Contribut') ? 'Contribute' : 'Docs';
46+
4547
return (
4648
<>
4749
{meta && (
@@ -83,7 +85,7 @@ export default function Layout({
8385
leftLinks={LEFT_NAV_LINKS as NavMenuItem[]}
8486
rightLinks={RIGHT_NAV_LINKS as NavMenuItem[]}
8587
socialLinks={SOCIAL_LINKS as NavMenuItem[]}
86-
currentSite={'Docs'}
88+
currentSite={current}
8789
/>
8890
<SecondaryNav />
8991
<Container backgroundColor="bg-color-tertiary">

0 commit comments

Comments
 (0)