-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
with subsections causes a panic
#9146
Comments
Thanks for this; as a general remark, try to write issue titles that describes the problem/bug (what happens). I have a list of 50 Hugo notifications every morning, and "Open |
I couldn't think of anything better, here I'll try again |
hugo new
with subsections causes a panic
Even though I'm not able to reproduce the panic (I tested with your site on my MacBook), I do see some discrepancies (if that's even a word ...) with how you use this (I have added a PR that should improve the handling when you have a /default archetype directory). But when you say:
And the |
Oh wait, I made a typo. I don't put the index.md (so I'll have to see if I can test out that commit to see if it made any difference. |
Just tested it on master (fdad91f), still get the same panic (a couple line numbers are different so I'll paste the error again) The first line is the command I ran, not part of the output
|
I am unable to reproduce this with v0.89.4.
hugo new --kind blog blog/drafts/foo
|
That's weird, it's still happening for me. I guess I'll go to https://discourse.gohugo.io/ |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes (I actually just updated it)
Issue
I have an archetype in my theme that's
archetypes/blog/index.md
and a subsection in my website undercontent/blog/
which holds my private drafts (content/blog/drafts/
). In previous releases I would dohugo new --kind blog blog/drafts/[whatever]
(it would actually work without using--kind
, but I used it just in case). Now, I get the same error message as #9072.The issue doesn't happen with the main
blog
section; only thedrafts
subsection under it.Error message for reference:
The content of the index.md that gets created is also the same as in #9072:
If it helps, my website and theme are both on GitHub.
The text was updated successfully, but these errors were encountered: