fix: sidebar

This commit is contained in:
pengzhanbo 2022-04-12 15:08:35 +08:00
parent 00615012a4
commit a2794d72ea
2 changed files with 4 additions and 2 deletions

View File

@ -49,7 +49,10 @@ defineProps({
.sidebar-items {
font-size: 16px;
padding-left: 1.25rem;
font-weight: 300;
li a {
font-weight: 300;
}
}
}
}

View File

@ -149,7 +149,6 @@ function findNotePage(
} else {
return notePageList.find((page) => {
const relative = page.relativePath.join('/')
console.log(relative, dir, sidebar)
return (
relative === path.join(dir, sidebar) ||
relative === path.join(dir, sidebar + '.md') ||