Hey guys…
I am working on a Jekyll site that uses several collections (e.g., blog posts, case studies, and tutorials), and I want to assign each collection a unique permalink structure. For example:
- Blog posts should follow:
/blog/:year/:month/:title/
- Case studies should follow:
/case-studies/:title/
- Tutorials should follow:
/tutorials/:category/:title/
I have managed to get the basic permalink structures set up in _config.yml
, but I’m running into a few issues:
- Some pages in the collections do not seem to respect the specified structure. They either end up with the default permalink or break entirely.
- Is there a way to automatically generate these without manually adding front matter to every file?
- How do these custom permalinks interact with pagination, particularly for the blog collection?
I also check this: https://talk.jekyllrb.com/t/automotive-makes-and-models-a-case-of-nested-collections-and-permalinksalesforce-admin But I have not found any solution. Could anyone guide me about this? If anyone has experience managing this kind of setup or can point me toward any plugins or best practice.
Thanks in advance!
Respected community member!