timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.45k stars 1.96k forks source link

[Feature Request] Customize slug with front matter #815

Closed tddschn closed 8 months ago

tddschn commented 8 months ago

Is your feature request related to a problem? Please describe. I wish I could customize slug for posts / pages with front matter, like this:

slug: /post-1
# link for this page would be mydomain.com/post-1
# OR:
slug: post-1
# link for this page would be mydomain.com/<the-parent-dir-for-the-post's-relative-path-from-/data/blog>/post-1
# this is how the slug in front matter customize page URL in docusaurus

Sometimes the filename / path for the post file is really long, or not easy to read for non-authors, and sometimes I want to have a cool short URL for a specific page, and I wish I could do that with this feature.

timlrx commented 8 months ago

Hi @tddschn, unfortunately there are no plans to support this feature. The blog fully embraces the next.js file based routing approach. Breaking out of it is non-trivial.