You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I'm getting the next error on Netlify when the user adds a new post 12:14:04 PM: Failed during stage "preparing repo": error: unable to create file _posts/2023-11-21-bihar-passes-the-bihar-reservation-of-vacancies-in-p-s-sc-st-obc-amendment-bill-2023-reserving-seventy-five-percent-of-positions-in-government-jobs-and-educational-institutions-for-people-from-marginalised-castes-and-economically-weaker-sections.md: File name too long
Is your feature request related to a problem? Please describe.
Yes. The team that uses the CMS is creating posts with long titles, and this is an everyday issue. I need to manually change the file name on GitHub to be able to deploy.
Describe the solution you'd like
Would be nice to have a way to tell the slug to use only 'x' amount of characters of the title to avoid this issue.
Describe alternatives you've considered
I know I can use pattern to limit the title field with regex, but in our use case the titles can't be shortened.
The text was updated successfully, but these errors were encountered:
@jdromero88 hello ! did you find a workaround to this issue ? we ended up creating in every collection a spare- / meta- field "short title" that we don't use anywhere in the frontend code, and whose only purpose is to help decap generate shorter file names.
Currently, I'm getting the next error on Netlify when the user adds a new post
12:14:04 PM: Failed during stage "preparing repo": error: unable to create file _posts/2023-11-21-bihar-passes-the-bihar-reservation-of-vacancies-in-p-s-sc-st-obc-amendment-bill-2023-reserving-seventy-five-percent-of-positions-in-government-jobs-and-educational-institutions-for-people-from-marginalised-castes-and-economically-weaker-sections.md: File name too long
Is your feature request related to a problem? Please describe.
Yes. The team that uses the CMS is creating posts with long titles, and this is an everyday issue. I need to manually change the file name on GitHub to be able to deploy.
Describe the solution you'd like
Would be nice to have a way to tell the slug to use only 'x' amount of characters of the title to avoid this issue.
Describe alternatives you've considered
I know I can use
pattern
to limit the title field with regex, but in our use case the titles can't be shortened.The text was updated successfully, but these errors were encountered: