aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-05-02 23:58:41 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-05-02 23:58:41 +0800
commitfade13d683c0420d83f523703d7038edbefe97f6 (patch)
treeec12df4a01ff9ecba4b48162e59a9c86032a3e3a /docs
parent569e81f4117e049d0b66f11fe70526f308ba8f86 (diff)
downloadHydroRoll-fade13d683c0420d83f523703d7038edbefe97f6.tar.gz
HydroRoll-fade13d683c0420d83f523703d7038edbefe97f6.zip
Diffstat (limited to 'docs')
-rw-r--r--docs/theme.config.js28
1 files 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 = {
<meta property="twitter:image" content={ogUrl} />
<meta property="og:image" content={ogUrl} />
<meta property="og:locale" content="en_IE" />
- <meta property="og:site_name" content="Turbo" />
- <link rel="prefetch" href="/repo" as="document" />
- <link rel="prefetch" href="/repo/docs" as="document" />
- <link rel="prefetch" href="/pack" as="document" />
- <link rel="prefetch" href="/pack/docs" as="document" />
+ <meta property="og:site_name" content="HydroRoll" />
+ <link rel="prefetch" href="/AI" as="document" />
+ <link rel="prefetch" href="/AI/docs" as="document" />
+ <link rel="prefetch" href="/TRPG" as="document" />
+ <link rel="prefetch" href="/TRPG/docs" as="document" />
<link
rel="alternate"
type="application/rss+xml"