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
refactor: support props #9
Conversation
Signed-off-by: Sepush <sepush@outlook.com>
Signed-off-by: Sepush <sepush@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to create a new page similar to Publications/index.ts?
just like before or pass the data as prop for it |
Can you make |
I made it be the default value of props pub so it's no need to pass a prop now |
How does pubs.ts work now? It doesn't use a |
|
I think you have to change it to use the data in pubs.ts am I right |
Can we have no default value but pass in argument explicitly? |
I did not change this file so it not in the change files |
we can but have the default value is a better we |
But there is only one default value, and if I want to pass in data I'll have to do it myself. I'm just curious how to import data in .md |
Signed-off-by: Sepush <sepush@outlook.com>
<script setup lang="ts"> | ||
import {publications} from '/.vitepress/pubs' | ||
</script> | ||
<Publications :pubs="publications"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naruhoto
Signed-off-by: Sepush sepush@outlook.com