Skip to content

How do I host content at /blog/ route #2480

Answered by oripka
realchandan asked this question in Q&A
Discussion options

You must be logged in to vote

pages/blog/[...slug].vue is right, if you then query like this for content/blog/about.md

const { data: page } = await useAsyncData(`blog-${route.path}`, () => queryContent(route.path).findOne())
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by realchandan
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