I want the posts that are shown on the shop.hbs page, to link to /shop/post-title. These posts have the tag shop added.
But they are not, they are linking to /post-title right now, the tag is missing.
But none of my posts are having the tag in the url.
Is this some kind of setting I have off or something, from what I understood from the documentation this should work?
From the documentation it seems that the permalink property is for collections only.
That means your channel will use that property.
Regarding your collections, there is no filter on the main collection, so every post will belong to that one and no posts belong to the /tags/ collection.
You can try the following:
collections:
/:
permalink: /{primary_tag}/{slug}/
template: index
This will use the primary tag of posts, but you can also set a hardcoded value as well.
Adding this, doesn’t do anything to my shop.hbs. I’m not sure how the collections work honestly. The / index overwrites it. But honestly don’t know how to do it only for the shop items