Pagination of any range (agnostic of list views)

i have a blog with many subsections that will have their own aggregate page (filtered by having a tag - in this example 'sometag).

what i have now is a range of every article in the blog section with a ‘sometag’ by doing the following:

{{ range where .Site.Pages.ByDate.Reverse "Section" “blog” }}
 {{ if in .Params.tags “sometag” }}
    …
  {{ end }}
{{ end }}

and this is what i’m trying to do to paginate those results (this is where things are failing and i can’t figure out a solution

{{ $paginator := .Paginate (where .Site.Pages.ByDate.Reverse "Section" "blog") }}

{{ range $paginator.Pages }}
  {{ if in .Params.tags “sometag” }}
    …
  {{ end }}
{{ end }}

And by failing you mean?