-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 panic when running hugo --buildDrafts on v0.100.0+ when using markdownify in templates #9959
Comments
I was able to narrow down the crash to the use of (i) Here's a recipe with a much smaller codebase:
Relevant commit: https://gitlab.com/hugo-mwe/hugo-mwe/-/commit/6f3a5cf71bd7d34f4829e5d8d3afb6d5c033d449 Workaround to prevent the crashUse |
Same here. Unfortunately I can't use workaround because |
You can override the partials and theme files in your site's layouts/ directory until this get fixed in Hugo. |
With both of the test sites that you reference in this issue, the home page is not backed by a content file. I think you can work around this issue with:
|
I will fix this and push a patch release later today. |
…o content file Fixes gohugoio#9959
…o content file Fixes gohugoio#9959
…o content file Fixes gohugoio#9959
Thank you! I confirm the fix. |
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.
Issue
When running
hugo --buildDrafts
orhugo serve --buildDrafts
on my site, I get a bunch of panic backtraces like this:Click to see the backtrace
Steps to reproduce this
Other info
--buildDrafts
is not used.--buildDrafts
.The text was updated successfully, but these errors were encountered: