From 38feb3e2f72fbdf7e90e0e7c8e90bf6acda7701e Mon Sep 17 00:00:00 2001 From: neo Date: Fri, 11 Aug 2023 00:27:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96head=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dumi/theme/layout.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.dumi/theme/layout.tsx b/.dumi/theme/layout.tsx index 61e08ea..2f80e00 100644 --- a/.dumi/theme/layout.tsx +++ b/.dumi/theme/layout.tsx @@ -78,7 +78,7 @@ const Layout: React.FC = ({ children, location }) => { locale, } = useContext(context); - const { mode, repository, logo } = config + const { mode, repository, logo, title } = config const { pathname } = useLocation(); @@ -129,8 +129,8 @@ const Layout: React.FC = ({ children, location }) => { }} > - {meta.title && {meta.title}} - {meta.title && } + {meta.title && {meta.title + ' - ' + title}} + {meta.title && } {meta.description && } {meta.description && (