Skip to content

Commit 5b7a49d

Browse files
committed
partially fix links color on links page
1 parent 52e4975 commit 5b7a49d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/working-notes/todo3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,5 +502,6 @@ https://github.com/sindresorhus/github-markdown-css
502502

503503
table of contents id links
504504
a href open in new tab
505+
fix links page links color for history back view transition
505506
------------
506507
```

src/components/Header.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ const activeNavItemPath = getActiveNavItemPath(routePathname);
6969
{
7070
NAVIGATION_ITEMS.map(({ title, path }) => (
7171
<li>
72-
<HeaderLink href={path} isActive={path === activeNavItemPath}>
72+
<HeaderLink
73+
href={path}
74+
isActive={path === activeNavItemPath}
75+
{...(path === ROUTES.LINKS ? { 'data-astro-reload': true } : {})}
76+
>
7377
{title}
7478
</HeaderLink>
7579
</li>

0 commit comments

Comments
 (0)