Replies: 2 comments 3 replies
-
You can query by regex. queryContent().where({ _path: /^\/blog\// }) This gets all posts that have a path that starts with Similar reference: #1777 (comment) Only thing is, that I don't know if the root path can be |
Beta Was this translation helpful? Give feedback.
3 replies
-
I crossposted this on Discord to get a few more eyes on the situation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like all of my content to be prefixed with the
/blog
route. My current solution is to store all posts in acontent/blog
folder.The problem that I'm experiencing is that when I use
queryContent()
, it treats the folder as a post.Is there a way that I could just query the
children
object while still usingqueryContent()
's functions likesort()
,limit()
, andskip()
?Thank you :)
Edit:
Here's a reproduction of my issue:
https://stackblitz.com/edit/github-zvmcby-u8utm2?file=app.vue
What I don't want:
What I want:
Beta Was this translation helpful? Give feedback.
All reactions