RC Logr 20190409 144438
Tuesday, 9 Apr, 2019
After upgrading to static site generator «Hugo 0.55.0», building with hugo server -D returns a couple of non-fatal warnings that should be corrected. 🐞
- The .Site.Pagesincludes section pages so you might need to change it to.Site.RegularPages. I was building anindex.jsonfor searching and relying on it to supply data to a script, but after the upgrade, the index included pages with no content. To fix, I just changed to the latter.
- When you get Page's .Hugo is deprecatedyou just need to change from something like.Hugo.Generatortohugo.Generatorin your<head>.
- .GetParamis being deprecated, so see if you can just access the param directly. For example, indicating what posts are in draft form:
|  |  |