From a54511b4da31c503119b6c0e1f8999f0fd21ca54 Mon Sep 17 00:00:00 2001
From: sebastienlorber
Date: Fri, 27 May 2022 17:46:09 +0200
Subject: [PATCH] apply siteTitle as default title
---
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 && }
);