UtkarshVerma / hugo-dream-plus

:rainbow: An upgraded version of the Hugo "Dream" theme with tons of new features.
http://dream-plus-posts.netlify.com
MIT License
68 stars 66 forks source link

Fixes deprecation warnings in hugo 0.55 #63

Closed vectorstorm closed 5 years ago

vectorstorm commented 5 years ago

In Hugo 0.55 and later, .Hugo.Generator has been deprecated, and should instead be invoked as hugo.Generator. This leads to a couple of noisy deprecation warnings every time Hugo v0.55 or later regenerates a site based upon this theme.

This commit makes the necessary changes to make Hugo v0.55+ happy again.

vectorstorm commented 5 years ago

Hm.. your tests seem to be running with Hugo v0.48, which presumably don't support the new "approved" way of doing things. The build logs don't show the actual error, so I'm guessing about what's going wrong.

Up to you what you want to do with this! 0.55 is pretty wordy about how unhappy it is for themes to be calling .Hugo.Generator, but if the New Way isn't working at all with old hugo releases, we're probably stuck with it at least for a while.

UtkarshVerma commented 5 years ago

Thanks for the PR @vectorstorm. I will update my tests.