vividvilla / ezhil

Clean and minimal personal blog theme for Hugo
https://ezhil-hugo.netlify.com/
MIT License
422 stars 178 forks source link

Use `.Site.RegularPages` to support changes in Hugo 0.58.0 #11

Closed gavincabbage closed 5 years ago

gavincabbage commented 5 years ago

This PR updates the loops in the list and index pages to use .Site.RegularPages in place of .Data.Pages to support behaviorial changes in Hugo 0.58.0, as described in the following warning while running hugo -D:

WARN 2019/09/03 22:49:11 In the next Hugo version (0.58.0) we will change how $home.Pages behaves. If you want to list all regular pages, replace .Pages or .Data.Pages with .Site.RegularPages in your home page template.

PS- Thanks for the theme, it's really great and I am using on my personal site.

vividvilla commented 5 years ago

I have pushed the fix for Hugo 0.58.0 here - https://github.com/vividvilla/ezhil/commit/bb28e76551834a70f1889fb7601b49e5abd7e328