Browse Source

[beta] Add blog links (#5008)

main
Ricky 2 years ago
committed by GitHub
parent
commit
dfc73fb567
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      beta/src/components/Layout/Footer.tsx
  2. 2
      beta/src/components/Layout/Sidebar/SidebarRouteTree.tsx
  3. 4
      beta/src/sidebarHome.json

1
beta/src/components/Layout/Footer.tsx

@ -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">

2
beta/src/components/Layout/Sidebar/SidebarRouteTree.tsx

@ -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}

4
beta/src/sidebarHome.json

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

Loading…
Cancel
Save