diff --git a/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx index 0173dc1ec9cf..cdb69965ec61 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx @@ -40,9 +40,11 @@ function BreadcrumbsItemLink({ function BreadcrumbsItem({ children, active, + index, }: { children: ReactNode; active?: boolean; + index: number; }): JSX.Element { return (
  • {children} +
  • ); } function HomeBreadcrumbItem() { + const homeHref = useBaseUrl('/'); return (
  • + href={homeHref}> 🏠
  • @@ -90,11 +94,13 @@ export default function DocBreadcrumbs(): JSX.Element | null { itemType="https://schema.org/BreadcrumbList"> {homePageRoute && } {breadcrumbs.map((item, idx) => ( - + {item.label} - ))}