From 45960f36fbff920ef8562c4b9900fe6572852270 Mon Sep 17 00:00:00 2001
From: zerolee <464806884@qq.com>
Date: Thu, 14 Dec 2023 11:32:23 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=B7=B3=E8=BD=AC?=
=?UTF-8?q?=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.vitepress/config.mts | 4 ++--
.vitepress/theme/Layout.vue | 32 +++++++++++++++++++++++++++++---
src/components/BlogList.vue | 13 +++++++++----
3 files changed, 40 insertions(+), 9 deletions(-)
diff --git a/.vitepress/config.mts b/.vitepress/config.mts
index f499cbfb..4e106bf2 100644
--- a/.vitepress/config.mts
+++ b/.vitepress/config.mts
@@ -41,7 +41,7 @@ const branchInfo = await simpleGit('.', {}).pull().branch({});
const { current, branches } = branchInfo;
const isMain = current === 'main';
-const base = isMain ? '/' : `/${current}/`;
+const base = isMain ? '/main/' : `/${current}/`;
const domain = 'https://docs.deepwisdom.ai';
const versions = Object.keys(branches)
.reduce((vs, branchname) => {
@@ -66,7 +66,7 @@ const getVersions = () => {
items: [
{
text: 'main (unstable)',
- link: `${domain}`,
+ link: `${domain}/main/`,
target: '_blank',
disabled: true,
},
diff --git a/.vitepress/theme/Layout.vue b/.vitepress/theme/Layout.vue
index 727f6b01..9f7b2de0 100644
--- a/.vitepress/theme/Layout.vue
+++ b/.vitepress/theme/Layout.vue
@@ -1,10 +1,10 @@
diff --git a/src/components/BlogList.vue b/src/components/BlogList.vue
index e6f6d7c2..f5668240 100644
--- a/src/components/BlogList.vue
+++ b/src/components/BlogList.vue
@@ -9,7 +9,12 @@
dark:border="0 solid #444 b"
>
-
+