nuxt-community / nuxtent-module

Seamlessly use content files in your Nuxt.js sites.
https://nuxtent-module.netlify.com/guide
MIT License
388 stars 50 forks source link

Give the ability to render the slug without dates #173

Closed ghost closed 6 years ago

ghost commented 6 years ago

My posts look like this

['posts', { page: '/posts/_slug', permalink: '/:year/:month/:day/:slug', isPost: true, generate: ['get', 'getAll'] }]

Now I want my permalinks not to look like this /2018/05/28/2018-05-28-lorem-ipsum but instead like this /2018/05/28/lorem-ipsum how do I make this happen?

cesasol commented 6 years ago

I will look into this. But as this may potentially break current running sites and permalinks there should be a extra config like dontRenderDateInSlug: true

joostdecock commented 6 years ago

Pretty sure this is already possible, look no date in slug: https://freesewing.org/blog/announcing-penelope