I have a blog using the no longer supported theme theme-hugo-foundation6. I have a repository of the theme as last updated here GitHub - billthefarmer/theme-hugo-foundation6. The sources for the blog are here blog/blog at master · billthefarmer/blog · GitHub. the blog is here Bill Farmer. I have fixed a few minor problems with the theme as they were flagged up but the changes introduced in Hugo 0.57 have broken the main page and I can’t work out how to fix it. The baseof.html file contains:
The list.html file contains:
{{ define "main" }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
This works fine for category pages, but not the main page. I realise I should be using site.RegularPages or .Site.RegularPages but I can’t work out where or how.