Skip to content

loading only some markdown files in the content folder from pages folder #2245

Answered by nobkd
xarthurx asked this question in Q&A
Discussion options

You must be logged in to vote

I think, that you're looking for the <ContentList> component.

Here's a possible example for how I understood your structure.
Note, that this project is in doc-driven mode, so there are no app.vue or pages/[...slug].vue files.

https://stackblitz.com/edit/github-fz8dam?file=pages%2Fposts%2Findex.vue,pages%2Fprojects%2Findex.vue,pages%2Findex.vue


Note
If you have content/posts/index.md and pages/posts/index.vue the one from the content directory is preferred and used over the one from the pages directory.

If I misunderstood your problem, or you have further questions, just ask.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@xarthurx
Comment options

@xarthurx
Comment options

@nobkd
Comment options

@xarthurx
Comment options

@nobkd
Comment options

Answer selected by xarthurx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants