-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hugo new panics when folder name contains a date #12599
Comments
Problem occurs with v0.123.0 and later. |
Thanks for confirming that @jmooring |
Unable to reproduce with v0.128.2 |
Just tested on v0.128.2 and bug is still there.
|
@bep I am not sure on which version it was fixed, but the issue is no longer there. I can successfully run I am not sure if the fix was intentional or implicitly resolved by doing some other changes, so I will leave that with you to close the issue. Thank you 🤗 |
This has not been fixed. The problem occurs with v0.123.0 and later when the date is in the future. For example:
|
You're absolutely right; I hit a false positive because I tested it with today's date. It still fails with the future date, as you said. Thanks for the info. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
I use leaf bundles for my
posts
. I inferdate
of my posts from the folder name. I have this in my config.Assuming I have this archetype under
archetypes/posts/index.md
When I run
hugo new posts/test
it works as expected. If I run ahugo new posts/2024-06-17-test
, I am receiving an error.Here is a repo where I am facing this issue: https://github.com/pawelgrzybek/pawelgrzybek.com
The text was updated successfully, but these errors were encountered: