Time has come to move out of Hugo 0.34 to something never (0.128.0). Hugo is expanding quickly and unfortunately in backward incompatible way. Plus this site is already since some time on Github Actions not Wercker..
Main differences/troubles I had when modernizing:
- Hugo looks for baseof.html file as main index in layouts/default/ dir
- It is not {{ with .Site.Params.googleAnalytics }} but {{ with site.Params.googleAnalytics }}
- Paginator looks differently, and needs to be initialized before using:
// Old way
{{ range ( .Paginate (where .Data.Pages "Type" "post")).Pages }}
{{ .Render "summary"}}
{{ end }}
// New way
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "post") 10 }}
{{ range $paginator.Pages }}
{{ .Render "summary"}}
{{ end }}
–
Below is link to CI actions template for this blog. It works nice and is pretty fast (seconds).