spf13 / hyde

Port of Mdo's excellent theme to Hugo
Other
556 stars 579 forks source link

Adjusted pages lookup compatibility #64

Closed jvalecillos closed 5 years ago

jvalecillos commented 5 years ago

What

Adjusting the index page to show all the posts in descending order in the version v0.57.0 of Hugo.

Why

After the changes in gohugoio/hugo#6181 included in the version v0.57.0 of Hugo the index page doesn't have .Data.Pages variable anymore.

This change keeps retro-compatibility with previous versions of Hugo.

bep commented 5 years ago

Thanks, but

3080504e92ce38423726b40d517df4b56be2e88f

Made this work with the current and all Hugo versions the last years. I don't see what your commit adds?

jvalecillos commented 5 years ago

You are right. I tested the variable against a couple of versions back and it seems to work just as expected.

I understood the change the other way around when creating a PR in another fork.

Thank you for the quick feedback and sorry for the confusion.

bep commented 5 years ago

No problem, I appreciate the contribution. As a side note, I have now added proper semver versions to this project, so you can handle updates via Hugo Modules, if you want.