matsuyoshi30 / harbor

Simple and minimal personal blog theme.
MIT License
186 stars 68 forks source link

Running with Hugo throws warnings for Page.URL's future deprecation #41

Closed loganrios closed 4 years ago

loganrios commented 4 years ago

Exact warning (personal/timing details emitted):

$ hugo server -D
Building sites … WARN YYYY/MM/DD HH:MM:SS Page.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

Not sure what's causing this--I've messed around with removing url from [[params.*]] in the config.toml file, but the error still gets thrown.

In looking through the source code my (uneducated) guess is that it could be layouts/partials/nav.html's use of {{ .url | relLangURL }}, but I haven't figured out how to rebuild with those parts changed.

matsuyoshi30 commented 4 years ago

@loganrios Thank you for letting me know this problem. That is caused by layouts/_defaults/rss.xml.