I’m attempting to route Domain error to Domain error using the route.yaml. After following the documentation I create the route.yaml shown below, but when I go to the url the collection is empty. Any suggestions? Thank!
When you create a collection you need to ensure the filtering parameters are unique. In your case the first collection isn’t filtering for anything, so all posts match that criteria. After that nothing will be left to match “blog” or “podcast” as collections treat posts exclusively (they can only exist in one collection).
But if you want to split posts to only show blog posts on /blog/ and podcasts /podcasts/ and then have the remaining posts on the home page then you’ll want to use Collections more like this:
Couple of things to note here: I’m using minus - to exclude blog posts and podcast posts from the index, and I’m using primary_tag to filter posts. The primary tag is the first tag applied and will always be unique. More info here in our docs: