-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
relLangURL doc doesn't specify the return type #2000
Comments
That is correct (and I'm (in this moment) working on a new and complete (auto generated) reference section for the Hugo Docs where all functions, methods and types should be documented. |
It's surprising that a "URL" is represented by something called template.HTML, even if it's just a string under the hood. This breaks calling .GetPage with the output of relLangURL. Perhaps relLangURL could be made to convert template.HTML to string, rather than we having to call string explicitly? |
I've been thinking about this, and can't come up with a good reason for the current data type. We added the Although I've never had a problem with the current data type, create an issue if you feel strongly about it. |
I'll create an issue. In the meantime, this issue can be for specifying the existing return type of relLangURL. |
Closes gohugoio#1220 Closes gohugoio#2000
Closes gohugoio#1220 Closes gohugoio#2000
It's implied it's a string, or at worst a url.URL:
However, it appears to be template.HTML. Is that correct?
The text was updated successfully, but these errors were encountered: