-
-
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
_index.md
+ HTML file w/o front matter causes hugo serve
to hang during re-render
#7028
Comments
OK, I have a minimal repro. The missing piece was a raw HTML file inside the |
cascade: {draft: true}
seems to cause hugo serve
to hang during rendercascade: {draft: true}
+ raw HTML file causes hugo serve
to hang during re-render
@benkuhn I think that hang has been reported by someone else and not related to draft, but I haven't been able to reproduce it ... so thanks alot! |
You're totally right, the draft thing was a red herring, all that matters is the existence of an |
cascade: {draft: true}
+ raw HTML file causes hugo serve
to hang during re-render_index.md
+ HTML file w/o front matter causes hugo serve
to hang during re-render
This means that any HTML file inside /content will be treated as a regular file. If you want it processes with shortcodes and a layout, add front matter. The defintion of an HTML file here is: * File with extension .htm or .html * With first non-whitespace character "<" that isn't a HTML comment. This is in line with the documentation. Fixes gohugoio#7030 Fixes gohugoio#7028 See gohugoio#6789
This means that any HTML file inside /content will be treated as a regular file. If you want it processes with shortcodes and a layout, add front matter. The defintion of an HTML file here is: * File with extension .htm or .html * With first non-whitespace character "<" that isn't a HTML comment. This is in line with the documentation. Fixes #7030 Fixes #7028 See #6789
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
Steps to reproduce:
Note that I haven't found a minimal repro and the site that I know reproduces this is private.
If it's not easy to diagnose the error from the stack traces I've attached below, I'm happy to try to minimize the reproduction, but I suspect it's something about my custom theme and am not looking forward to trying to minimize it--so I'm posting here first in case the stack traces make it obvious.
Steps:
hugo serve --buildDrafts
/conviction/
, the URL of a draft postSource changed "/Users/ben/code/benkuhn.net/content/posts/drafts/conviction.md": WRITE
, but not the next expected lineTotal in <X> ms
The problem does not reproduce if I remove the
drafts/_index.md
file and adddraft: true
toconviction.md
. It also does not reproduce when I edit a non-draft. It does reproduce with--disableFastRender
or--disableLiveReload
.I ran the first step with
GOTRACEBACK=all
and sent SIGQUIT to the server while it was hung; it produced the following stacktraces:stacktrace.txt
I also ran it with
--trace
and it produced the following file (gzipped so github will let me upload):hugo-trace.gz
As I mentioned, I couldn't reproduce this with a blank site, so there must be some other part of my config that's interacting with the
cascade: {draft: true}
setting. Please let me know if you have ideas for what that could be, as it'll help me create a minimal repro.The text was updated successfully, but these errors were encountered: