diff --git a/packages/docusaurus-plugin-content-pages/src/plugin-content-pages.d.ts b/packages/docusaurus-plugin-content-pages/src/plugin-content-pages.d.ts index 9eed9f0c36..7f5dc3fd57 100644 --- a/packages/docusaurus-plugin-content-pages/src/plugin-content-pages.d.ts +++ b/packages/docusaurus-plugin-content-pages/src/plugin-content-pages.d.ts @@ -13,6 +13,7 @@ declare module '@theme/MDXPage' { readonly frontMatter: { readonly title: string; readonly description: string; + readonly wrapperClassName?: string; }; readonly metadata: {readonly permalink: string}; readonly rightToc: readonly MarkdownRightTableOfContents[]; diff --git a/packages/docusaurus-theme-classic/src/theme/Layout/index.tsx b/packages/docusaurus-theme-classic/src/theme/Layout/index.tsx index 48b3086ec4..b41ad334ab 100644 --- a/packages/docusaurus-theme-classic/src/theme/Layout/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Layout/index.tsx @@ -6,6 +6,7 @@ */ import React from 'react'; +import clsx from 'clsx'; import Head from '@docusaurus/Head'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; @@ -43,6 +44,7 @@ function Layout(props: Props): JSX.Element { image, keywords, permalink, + wrapperClassName, } = props; const metaTitle = title ? `${title} | ${siteTitle}` : siteTitle; const metaImage = image || defaultImage; @@ -87,7 +89,7 @@ function Layout(props: Props): JSX.Element { -
{children}
+
{children}
{!noFooter &&