-
-
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
Deprecate and then rename/remove Page.URL #4117
Comments
I am not in favor of removing Page.URL. For example But if you really think these are not valid use cases. Go ahead and remove it. I'll look into what can be done to replace its functionality... like I always do... |
I agree there's some redundancy. And on one hand I think Hugo template code might become easier when there's no two variables that return the same data. But on the other hand the required conversion to string of That latter might also make explaining how people can update from
Even though I wrote this without using programming lingo (like 'casting' or 'type incompatibility'), I still doubt if this is clear enough. (Or should we assume people read the release notes, where this can be explained more fully?) So to summarise: I don't know what wisdom is for this issue. 😆 |
If the recent release of Hugo 0.32 is any indication I would say that people don't bother with the release notes. The forum is full of posts regarding A Warn like @Jos512 proposes is the way to go. And possibly an example of the You cannot assume that every user of Hugo has used every one of its functions or that he/she knows what to do in advance. Not all of us are from a Dev background. |
Please consider removing There are out-of-date themes and perhaps tutorials floating around and some users keep on encountering the It's better to break some old projects rather than wasting time explaining a deprecation message that was added in 2017, five years later, in 2022. |
@onedrawingperday hmm... I was sure I removed that in the previous release. O well, thanks for the heads up. EDIT: OK, I see I bump the WARNING level to ERROR ... Yes, I will remove. |
They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed. Closes gohugoio#4117
They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed. Closes gohugoio#4117
They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed. Closes #4117
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. |
I cannot think of one valid use case for it, and I see it used in the wild all the time when
RelPermalik
orPermalink
is the correct choice.URL
returns the front matter value for regular pages, if set, else it return theRelPermalink
.The text was updated successfully, but these errors were encountered: