Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教下有关路由问题 #8

Open
zhang-sui opened this issue Jul 26, 2024 · 2 comments
Open

请教下有关路由问题 #8

zhang-sui opened this issue Jul 26, 2024 · 2 comments

Comments

@zhang-sui
Copy link

你好,我想请教下有关路由的问题,想了解下 https://blog.imsyy.top/pages/archives 这个页面,是创建了一个 markdown 文件承载页面内容嘛,还是使用 onBeforePageLoad 这个方法修改了参数信息,希望可以得到回答,万分感谢!

@imsyy
Copy link
Owner

imsyy commented Jul 27, 2024

是一个 markdown 文件来展示的,内容是由 nodejs 在构建时遍历所有 md 文件生成的,参考:https://vitepress.dev/zh/guide/data-loading

@zhang-sui
Copy link
Author

是一个markdown文件来展示的,内容是由nodejs在构建时遍历所有md文件生成的,参考:https://vitepress.dev/zh/guide/data-loading

非常感谢,我参考vuepress-theme-plume主题,想实现类似 https://theme-plume.vuejs.press/blog/tags/ 这样子的路由信息,发现vitepress的路由不是通过vue-router实现的,有着些许的差异,虽然可以通过其他方式实现该效果,但是始终感觉不优雅。
再次感谢博主解惑!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants