Isn’t $paginator a slice or collection? It should be possible to check BEFORE you load the template, if the variable contains 1 or more items. Something like if paginator count is not zero then load template.
This reads as if you could check $paginator.Pages for the count.
- .Paginate nil : page collection is NULL - don’t generate pages - .Paginate : page collection exists with zero or more pages - generate paging
OK it’s a hack**
Edited
I use tags on every page. The tags generate the meta/keywords in a page (SEO).
The paging of taxonomy pages generates a lot of files. I don’t need it.
(No .Prev / .Next usage).
Having a single paging file does not break any paging in taxonomy templates.