danielcgilibert / blog-template

📚 Openblog is an elegant, simple, and user-friendly blog. Focused on accessibility, SEO and performance.
https://blog-template-gray.vercel.app
GNU General Public License v3.0
658 stars 235 forks source link

Slug creatuoy #15

Closed ahmadkakarr closed 1 year ago

ahmadkakarr commented 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?

danielcgilibert commented 1 year ago

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