From 1cba459bc9d3be4a9f79e5fb4bfab0b7e4d7541f Mon Sep 17 00:00:00 2001 From: John Reilly Date: Thu, 19 Aug 2021 18:28:02 +0100 Subject: [PATCH] feat: implement in BlogPostPage-remove Seo changes --- .../src/plugin-content-docs.d.ts | 1 - .../src/theme/BlogPostItem/index.tsx | 13 +------------ .../src/theme/BlogPostPage/index.tsx | 12 +++++++++++- .../src/theme/Seo/index.tsx | 2 -- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/packages/docusaurus-plugin-content-docs/src/plugin-content-docs.d.ts b/packages/docusaurus-plugin-content-docs/src/plugin-content-docs.d.ts index a8d49f21ceff..cc4b1314f67f 100644 --- a/packages/docusaurus-plugin-content-docs/src/plugin-content-docs.d.ts +++ b/packages/docusaurus-plugin-content-docs/src/plugin-content-docs.d.ts @@ -132,7 +132,6 @@ declare module '@theme/Seo' { readonly description?: string; readonly keywords?: readonly string[] | string; readonly image?: string; - readonly children?: ReactNode; }; const Seo: (props: Props) => JSX.Element; diff --git a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/index.tsx b/packages/docusaurus-theme-classic/src/theme/BlogPostItem/index.tsx index c4440efdc568..325b559c4600 100644 --- a/packages/docusaurus-theme-classic/src/theme/BlogPostItem/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/BlogPostItem/index.tsx @@ -129,18 +129,7 @@ function BlogPostItem(props: Props): JSX.Element { return ( <> - {isBlogPostPage ? ( - - - - {authorURL && } - {frontMatter.tags && ( - - )} - - ) : ( - - )} +
+ + + + {authorURL && } + {frontMatter.tags && ( + + )} + } {pageImage && } - {children} ); }