From 1e18f8fd4ec23b35980369506593e6341b48594a Mon Sep 17 00:00:00 2001 From: Charles Korn Date: Sat, 28 May 2022 01:55:35 +1000 Subject: [PATCH] fix: always emit SEO title + og:title meta (#7362) Co-authored-by: sebastienlorber --- packages/docusaurus/src/client/SiteMetadataDefaults.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/docusaurus/src/client/SiteMetadataDefaults.tsx b/packages/docusaurus/src/client/SiteMetadataDefaults.tsx index bd2f953aab3e..e3ba631fbbe5 100644 --- a/packages/docusaurus/src/client/SiteMetadataDefaults.tsx +++ b/packages/docusaurus/src/client/SiteMetadataDefaults.tsx @@ -12,15 +12,17 @@ import useBaseUrl from '@docusaurus/useBaseUrl'; export default function SiteMetadataDefaults(): JSX.Element { const { - siteConfig: {favicon, tagline, title}, + siteConfig: {favicon, title}, i18n: {currentLocale, localeConfigs}, } = useDocusaurusContext(); const faviconUrl = useBaseUrl(favicon); const {htmlLang, direction: htmlDir} = localeConfigs[currentLocale]!; return ( - + + {title} + {favicon && } );