Skip to content

Commit acea4ff

Browse files
author
Peter Bengtsson
authored
include breadcrumbs in MINIMAL_RENDER layout (github#33569)
1 parent 5b2c438 commit acea4ff

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

components/DefaultLayout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Head from 'next/head'
2+
import { useRouter } from 'next/router'
23

34
import { SidebarNav } from 'components/sidebar/SidebarNav'
45
import { Header } from 'components/page-header/Header'
@@ -9,7 +10,7 @@ import { DeprecationBanner } from 'components/page-header/DeprecationBanner'
910
import { RestBanner } from 'components/page-header/RestBanner'
1011
import { useMainContext } from 'components/context/MainContext'
1112
import { useTranslation } from 'components/hooks/useTranslation'
12-
import { useRouter } from 'next/router'
13+
import { Breadcrumbs } from 'components/page-header/Breadcrumbs'
1314

1415
const MINIMAL_RENDER = Boolean(JSON.parse(process.env.MINIMAL_RENDER || 'false'))
1516

@@ -41,6 +42,10 @@ export const DefaultLayout = (props: Props) => {
4142
{/* For local site search indexing */}
4243
{page.topics.length > 0 && <meta name="keywords" content={page.topics.join(',')} />}
4344
</Head>
45+
46+
{/* For local site search indexing */}
47+
<Breadcrumbs />
48+
4449
<main id="main-content" style={{ scrollMarginTop: '5rem' }}>
4550
{props.children}
4651
</main>

0 commit comments

Comments
 (0)