Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions layout/MDXLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ export const MDXLayout = ({ pagePath, navItems, frontmatter, outline, children }
<MDXLayoutNav mobile />
</div>

<div sx={mdxStyles}>
<article className="graph-docs-content" sx={mdxStyles}>
{frontmatter?.title && <Heading.H1>{frontmatter.title}</Heading.H1>}
<MDXProvider components={mdxComponents}>{children}</MDXProvider>
</div>
</article>

<Flex.Row sx={{ display: [null, null, null, 'none'], mt: Spacing.XL_XXL }}>
<EditPageLink mobile />
Expand Down
2 changes: 1 addition & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { extractLocaleFromPath } from '@edgeandnode/components'

export default class MyDocument extends Document {
static async getInitialProps(context: DocumentContext) {
const { locale } = extractLocaleFromPath(context.pathname)
const { locale } = extractLocaleFromPath(context.asPath ?? context.pathname)
const initialProps = await Document.getInitialProps(context)
return { ...initialProps, locale }
}
Expand Down