Where to replace .Page.URL to fix 'Page.URL is deprecated' warning

I’m pretty new to Hugo. Today when I built my site I got this message:

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

To fix this I tried to replace Page.URL with .Params.url in my code but I wasn’t able to find Page.URL anywhere. Could you please help me what can I do to fix the warning?

Here is the source code of my website.

Thanks for your help in advance!


You also have an invalid JS file.

Error: Error building site: MINIFY: failed to transform “js/script.js” (application/javascript): unexpected } in expression on line 195 and column 2
195: ·})(jQuery);

Finally, several values in your site configuration are ignored because they are listed under [markup.goldmark.renderer] when they should be in the root table. These all belong in the root table:

enableRobotsTXT = true
googleAnalytics = ""
enableGitInfo = false
pygmentsCodeFences = true

Hi @jmooring!
All the issues seems to be fixed. You helped me a lot to improve the quality of my site!
Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.