Skip to content
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

Hugo deprecation warnings #289

Closed
almereyda opened this issue May 29, 2019 · 2 comments
Closed

Hugo deprecation warnings #289

almereyda opened this issue May 29, 2019 · 2 comments
Labels
enhancement Improvements to existing features help wanted

Comments

@almereyda
Copy link

Hugo warns not to use certain language constructs anymore:

WARN 2019/05/30 01:17:21 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
WARN 2019/05/30 01:17:21 Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.
WARN 2019/05/30 01:17:21 Page's .UniqueID is deprecated and will be removed in a future release. Use .File.UniqueID.
Total in 13 ms
@almereyda
Copy link
Author

almereyda commented May 30, 2019

Now we also get a

WARN 2019/05/30 02:11:39 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }}

from the menu.html partial.

Repository owner deleted a comment from DBJDBJ Jun 4, 2019
@matalo33 matalo33 added enhancement Improvements to existing features help wanted labels Jun 4, 2019
maxatome pushed a commit to maxatome/hugo-theme-learn that referenced this issue Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to existing features help wanted
Projects
None yet
Development

No branches or pull requests

2 participants