[beta] Add blog links (#5008)

This commit is contained in:
Ricky
2022-09-07 16:37:32 -04:00
committed by GitHub
parent 1c1ad80596
commit dfc73fb567
3 changed files with 6 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ export function Footer() {
<FooterLink href="/community/meet-the-team">
Meet the Team
</FooterLink>
<FooterLink href="https://reactjs.org/blog">Blog</FooterLink>
{/* <FooterLink href="/">Community Resources</FooterLink> */}
</div>
<div className="flex flex-col">

View File

@@ -148,7 +148,7 @@ export function SidebarRouteTree({
<li key={`${title}-${path}-${level}-link`}>
<SidebarLink
isPending={pendingRoute === pagePath}
href={pagePath}
href={path.startsWith('https://') ? path : pagePath}
selected={selected}
level={level}
title={title}

View File

@@ -11,6 +11,10 @@
"title": "Overview",
"path": "/"
},
{
"title": "Blog",
"path": "https://reactjs.org/blog"
},
{
"title": "Community",
"path": "/community",