[SOLVED] 0.22: (where .Data.Pages "Type" "blog") broke

0.22 broke the blog part of my site — the blog posts didn’t show up at all on /blog/ — but this change fixed it.

@@ -1,5 +1,5 @@
 {{ define "content" }}
-    {{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
+    {{ $paginator := .Paginate (where .Site.RegularPages "Section" "blog") }}
     {{ range $paginator.Pages }}
         <article data-type='blog-post' class='h-entry'>
             <header>
@@ -24,7 +24,7 @@
 {{ define "afternav" }}
     <nav>
         {{ $outside := . }}
-        {{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
+        {{ $paginator := .Paginate (where .Site.RegularPages "Section" "blog") }}
         {{ if $paginator.HasPrev }}

HTH. I cribbed the new way from here.

Not sure what the bigger template was here, but using Type is still valid and maybe what you want.

After wrangling with sections for a while I think I understand what they are. I haven’t looked into types, so I figured I might as well go with what I know.