-
-
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
Consider making .File on .Page a zero value instead of nil #5781
Comments
I have thought a little about this, and I suspect the current solution will create more noise than we'd care for. So I will do this:
|
This looks like a great plan! Once you make a commit let me know and I will take it for a spin. |
bep
added a commit
to bep/hugo
that referenced
this issue
Mar 25, 2019
bep
added a commit
to bep/hugo
that referenced
this issue
Mar 25, 2019
bep
added a commit
to bep/hugo
that referenced
this issue
Mar 25, 2019
bep
added a commit
to bep/hugo
that referenced
this issue
Mar 25, 2019
bep
added a commit
that referenced
this issue
Mar 26, 2019
nguyenvanduocit
pushed a commit
to 12bitvn/hugo
that referenced
this issue
Apr 5, 2019
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
.File
is deprecated so you need to say.File.Filename
instead of.Filename
(you will get a deprecation warning for the latter).File.Filename
on a Page without a File you will get a nilpointer (a nice error message pointing to the location in Go 1.12.1File
isn't there (this is what I see in the wild; I think getting the nilpointer will help fix actual bugs in the templates around where people assumes that every Page is backed by a file)I create this issue as a "thinking issue". What do you think, @moorereason ?
The text was updated successfully, but these errors were encountered: