From fc0bed683f64a9a422de5507cfa6119c8274e68f Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Sun, 9 Oct 2022 16:17:16 +0330 Subject: [PATCH] fix: navbar external links not appearing. --- docusaurus.config.js | 3 --- src/theme/Navbar/Content/index.tsx | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index d7468e8..10aba47 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -70,9 +70,6 @@ const config = { }, items: [ { - type: 'doc', - docId: 'index', - position: 'left', href: 'https://blog.codex.storage/', label: 'Blog', }, diff --git a/src/theme/Navbar/Content/index.tsx b/src/theme/Navbar/Content/index.tsx index a381d8b..98032b6 100644 --- a/src/theme/Navbar/Content/index.tsx +++ b/src/theme/Navbar/Content/index.tsx @@ -51,7 +51,7 @@ export default function NavbarContent(): JSX.Element { const localeDropdown = items.find((item) => item.type === 'localeDropdown') const links = items.filter( - (item) => item.type === 'doc' || !!(item as any).to, + (item) => item.type === 'doc' || !!(item as any).to || !!item.href, ) const mobileSidebar = useNavbarMobileSidebar()