Skip to content

Commit fdc3d09

Browse files
fix: add sidebar to blog list
1 parent 9af79d7 commit fdc3d09

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

website/.vitepress/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export default defineConfig({
232232
pattern: 'https://github.com/ast-grep/ast-grep.github.io/edit/main/website/:path',
233233
},
234234
sidebar: {
235-
'/blog/': [
235+
'/blog': [
236236
{ text: 'Blog List', link: '/blog.html' },
237237
{ text: 'Homepage', link: '/' },
238238
{
@@ -257,4 +257,4 @@ export default defineConfig({
257257
sitemap: {
258258
hostname: 'https://ast-grep.github.io',
259259
},
260-
})
260+
})

website/blog.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
sidebar: false
32
outline: false
43
---
54

@@ -9,4 +8,4 @@ outline: false
98
import BlogIndex from './src/BlogIndex.vue'
109
</script>
1110

12-
<BlogIndex/>
11+
<BlogIndex/>

0 commit comments

Comments
 (0)