From fade13d683c0420d83f523703d7038edbefe97f6 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 2 May 2023 23:58:41 +0800 Subject: --- docs/theme.config.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/theme.config.js b/docs/theme.config.js index ce6426b..3e7ec06 100644 --- a/docs/theme.config.js +++ b/docs/theme.config.js @@ -21,12 +21,12 @@ const theme = { const router = useRouter(); const { frontMatter } = useConfig(); - let section = "Turbo"; - if (router?.pathname.startsWith("/pack")) { - section = "Turbopack"; + let section = "HydroRoll"; + if (router?.pathname.startsWith("/AI")) { + section = "HydroRollAI"; } - if (router?.pathname.startsWith("/repo")) { - section = "Turborepo"; + if (router?.pathname.startsWith("/TRPG")) { + section = "HydroRollTRPG"; } const defaultTitle = frontMatter.overrideTitle || section; @@ -87,10 +87,10 @@ const theme = { } else if (frontMatter?.ogImage) { ogUrl = `${SITE_ROOT}${frontMatter.ogImage}`; } else { - const type = asPath.startsWith("/repo") - ? "repo" - : asPath.startsWith("/pack") - ? "pack" + const type = asPath.startsWith("/AI") + ? "AI" + : asPath.startsWith("/TRPG") + ? "TRPG" : ""; const title = frontMatter.title ? `&title=${encodeURIComponent(frontMatter.title)}` @@ -139,11 +139,11 @@ const theme = { - - - - - + + + + +