rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.46k stars 777 forks source link

Upgraded deprecated features for `Hugo 0.127.0` #478

Closed santacodes closed 1 week ago

santacodes commented 3 months ago

I updated the following deprecated features and bugs that I found using this template.

ERROR deprecated: config: languages.en.keywords: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in Hugo 0.130.0. Put the value below [languages.en.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
WARN  deprecated: .Site.GoogleAnalytics was deprecated in Hugo v0.120.0 and will be removed in a future release. Use .Site.Config.Services.GoogleAnalytics.ID instead.
WARN  deprecated: .Site.DisqusShortname was deprecated in Hugo v0.120.0 and will be removed in a future release. Use .Site.Config.Services.Disqus.Shortname instead.

Fixes #476 and #457

mcaserta commented 2 months ago

I'm having an issue deploying my site to github because I'm afraid the latest version of hugo has moved the ".Site.GoogleAnalytics was deprecated" from a warning to an error.

I would rather not have to fork the theme and have this issue merged.

Thank you!

imrayyu commented 1 month ago

Still encountering this issue. Tried to edit themes\hello-friend-ng\layouts\partials\head.html file and replaced by .Site.Config.Services.GoogleAnalytics. This issue can be solved by this editing.

rhazdon commented 1 week ago

Thank you very much! :) Everything is in right now. :)