Deploying to gh-pages from @ DGP-Studio/Snap.Hutao.Docs@2cf3f73571 🚀

This commit is contained in:
Masterain98
2023-04-10 18:17:11 +00:00
parent 252d931f35
commit 028b0963d0
185 changed files with 1225 additions and 1305 deletions

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/achievements.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/achievements.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/achievements.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/character-data.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/character-data.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/character-data.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/character-wiki.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/character-wiki.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/character-wiki.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/real-time-notes.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/real-time-notes.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/real-time-notes.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -6,6 +6,7 @@
<title>Redirecting...</title>
<script>
const { hash, origin, pathname } = window.location;
const routePath = pathname.substring(1);
const { languages } = window.navigator;
const anchor = hash.substring(1);
@@ -28,11 +29,11 @@
}
// default link
const defaultLink = defaultLocale? `${origin}${defaultLocale}${pathname.substring(1)}${anchor?`#${anchor}`:""}`: null;
const defaultLink = defaultLocale? `${origin}${defaultLocale}${routePath}${anchor? `#${anchor}`: ""}`: null;
// a locale matches
if (matchedLocalePath) {
const localeLink = `${origin}${matchedLocalePath}${pathname.substring(1)}${anchor?`#${anchor}`:""}`;
const localeLink = `${origin}${matchedLocalePath}${routePath}${anchor? `#${anchor}`: ""}`;
if (availableLocales.includes(matchedLocalePath)) {
location.href = localeLink;

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/develop-plan.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/develop-plan.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/develop-plan.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/game-launcher.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/game-launcher.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/game-launcher.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/hutao-API.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/hutao-API.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/hutao-API.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/hutao-settings.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/hutao-settings.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/hutao-settings.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/mhy-account-switch.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/mhy-account-switch.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/mhy-account-switch.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -6,6 +6,7 @@
<title>Redirecting...</title>
<script>
const { hash, origin, pathname } = window.location;
const routePath = pathname.substring(1);
const { languages } = window.navigator;
const anchor = hash.substring(1);
@@ -28,11 +29,11 @@
}
// default link
const defaultLink = defaultLocale? `${origin}${defaultLocale}${pathname.substring(1)}${anchor?`#${anchor}`:""}`: null;
const defaultLink = defaultLocale? `${origin}${defaultLocale}${routePath}${anchor? `#${anchor}`: ""}`: null;
// a locale matches
if (matchedLocalePath) {
const localeLink = `${origin}${matchedLocalePath}${pathname.substring(1)}${anchor?`#${anchor}`:""}`;
const localeLink = `${origin}${matchedLocalePath}${routePath}${anchor? `#${anchor}`: ""}`;
if (availableLocales.includes(matchedLocalePath)) {
location.href = localeLink;

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/weapon-wiki.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/weapon-wiki.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/weapon-wiki.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>

View File

@@ -7,8 +7,8 @@
<link rel="canonical" href="/zh/features/wish-export.html">
<title>Redirecting...</title>
<script>
const anchor = window.location.hash.substr(1);
location.href = `/zh/features/wish-export.html${anchor?`#${anchor}`:""}`;
const anchor = window.location.hash.substring(1);
location.href = `/zh/features/wish-export.html${anchor? `#${anchor}`: ""}`;
</script>
</head>
<body>