diff --git a/packages/theme/package.json b/packages/theme/package.json index bfbdd2ec..5cbfcd81 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -65,5 +65,5 @@ "publishConfig": { "access": "public" }, - "gitHead": "6f0423366c8b337d5a561bcf7302bd648a8a3781" + "gitHead": "01136d273763630b68e6ac18b4bf1d42e3cf3ba7" } diff --git a/packages/theme/src/node/prepared/sidebarIndex.ts b/packages/theme/src/node/prepared/sidebarIndex.ts index a0855ef8..d74d39cb 100644 --- a/packages/theme/src/node/prepared/sidebarIndex.ts +++ b/packages/theme/src/node/prepared/sidebarIndex.ts @@ -115,7 +115,7 @@ function sidebarByConfig( } as SidebarItem } else { dir = path.join(dir, sidebar.dir || '') - link = path.join(link, sidebar.link) + link = path.join(link || '', sidebar.link || '') const current = sidebar.link ? findNotePage(sidebar.link, dir, notePageList) : undefined