diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 2717b54..a1d7633 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -18,11 +18,13 @@ const formattedRootPath = defaultTitle.toLowerCase().replace(/\s+/g, '-'); const relativePath = Astro.url.pathname const path = formattedRootPath + (relativePath === '/' ? '' : relativePath) +const pageTitle = (relativePath === '/' ? defaultTitle : `${Astro.props.title} - ${defaultTitle}`) + const navBarItems = siteConfig.navBarItems const customFooter = siteConfig.customFooter const nekoType = siteConfig.neko?.type -const { title, description = siteConfig.description, ogImage = "" } = Astro.props; +const { title = pageTitle, description = siteConfig.description, ogImage = "" } = Astro.props; --- @@ -32,8 +34,8 @@ const { title, description = siteConfig.description, ogImage = "" } = Astro.prop - -