-
-
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
Comment in first row of templates still makes the page go blank #7243
Comments
This is also a potential workaround:
Specifically inserting a dummy block at the beginning of the template so that the template does not "begin" with a comment. |
You can use the comment without the dash
AFAIK, if the comment inside a template where it use |
@pamubay Thanks for the heads up. We use the {{- -}} as a pattern that less technical authors can follow as a general rule. You are correct though that they can be omitted if the multi-line comment is snuggled up to the opening and closing braces. Alas, this does not resolve the actual issue though that child templates that begin with a comment in any form will not render a result. Rather than be stuck at 63.x we now place a dummy block
at the beginning of these files, though that feels wrong. |
Not in any form, in the form you use:
As pointed out by @jstromergalley you don't need the Maintaining an open source project consumes a lot of time, when fixing the comment issue in baseof, it appears this superfluous syntax was not covered, by design or omission. Until someone wishes to cover it, you can simply remove the |
Thanks @regisphilibert . Just to be clear, these specific style of comments DO work at the start of the document...
|
Correct. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
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 #6816 was closed, however this issue was never resolved. A single that starts with a comment (if that single is based on a baseof) will fail to render.
Removing the initial comment allows rendering. The last time this worked was v63.x
The text was updated successfully, but these errors were encountered: