Closed ahmadkakarr closed 1 year ago
I want to create slug based on categories to which blog post belongs.
Example.com/category1/post1
Also clicking on category1 https://blog-template-gray.vercel.app/category/category-1
I think it should be just
https://blog-template-gray.vercel.app/category-1
please guide how can i do this?
Hi @ahmadkakarr to create that slug you simply have to rename the category folder to [...category] and change the links to the categories.
I have created a branch with the code: code
I want to create slug based on categories to which blog post belongs.
Example.com/category1/post1
Also clicking on category1 https://blog-template-gray.vercel.app/category/category-1
I think it should be just
https://blog-template-gray.vercel.app/category-1
please guide how can i do this?