Open utterances-bot opened 4 months ago
A personal blog powered by VitePress
https://laplace.tw/posts/quick-build-blog-with-vitepress
大佬,你这个分类和归档是怎么做的
基本上就是使用VitePress的 Data Loader API - createContentLoader 載入posts的數據,有了數據就看我們怎麼使用了。
實作的話,你可以參考我部落格主題的 posts.data.ts、Category.vue 和 Archives.vue,分類頁面還有搭配一個簡單的 store 狀態管理做動態切換。
使用VitePress和GitHub Pages建立部落格 | LaplaceTW
A personal blog powered by VitePress
https://laplace.tw/posts/quick-build-blog-with-vitepress