Skip to content

Commit

Permalink
partially fix links color on links page
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed Aug 18, 2024
1 parent 52e4975 commit 5b7a49d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/working-notes/todo3.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,5 +502,6 @@ https://github.com/sindresorhus/github-markdown-css

table of contents id links
a href open in new tab
fix links page links color for history back view transition
------------
```
6 changes: 5 additions & 1 deletion src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ const activeNavItemPath = getActiveNavItemPath(routePathname);
{
NAVIGATION_ITEMS.map(({ title, path }) => (
<li>
<HeaderLink href={path} isActive={path === activeNavItemPath}>
<HeaderLink
href={path}
isActive={path === activeNavItemPath}
{...(path === ROUTES.LINKS ? { 'data-astro-reload': true } : {})}
>
{title}
</HeaderLink>
</li>
Expand Down

0 comments on commit 5b7a49d

Please sign in to comment.