-
-
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
Strange error on partial in baseof.html #5373
Comments
We currently use "baseof" as an identifier to identify ... base templates. Those are handled specially. I picked "baseof" as a very distinctive name thinking no-one would ever think of calling their other templates that. I could probably add additional checks here, but this is not a priority for me. For now: Consider baseof.* to be reserved for base templates. |
This is no problem. |
I tried reading source code. In tpl/tplimpl/template.go, isBaseTemplate uses strings.Contains. I will close this ticket and send a document correction. |
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. |
Steps to reproduce
I made example repository to reproduce error.
https://github.com/ikemo3/hugo-baseof-partial
if
{{ partial "baseof.body" . }}
is in baseof.html, this error occured.if
{{ partial "body" . }}
is in baseof.html, this error not occured.(master branch in the example repository).
Actual Results
Expected Results
No error.
Version
Hugo Static Site Generator v0.50/extended darwin/amd64 BuildDate: unknown
installed by Homebrew.
The text was updated successfully, but these errors were encountered: