Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Give the ability to render the slug without dates #173

Closed
ghost opened this issue May 28, 2018 · 2 comments
Closed

Give the ability to render the slug without dates #173

ghost opened this issue May 28, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented May 28, 2018

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?

@ghost ghost closed this as completed May 28, 2018
@ghost ghost added the cmty:question label May 28, 2018
@cesasol cesasol self-assigned this Jun 30, 2018
@cesasol cesasol changed the title Post slug without date? Give the ability to render the slug without dates Jun 30, 2018
@cesasol cesasol reopened this Jun 30, 2018
@cesasol cesasol added bug and removed cmty:question labels Jun 30, 2018
@cesasol
Copy link
Collaborator

cesasol commented Jun 30, 2018

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
Copy link
Collaborator

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

@cesasol cesasol removed the bug label Jul 5, 2018
@cesasol cesasol removed their assignment Jul 5, 2018
@cesasol cesasol closed this as completed Jul 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants