For a project running on Drupal 9.2.9, I want pagers on the top and bottom of view pages. I have it working on pages by an edit to a custom views-view.html.twig in the theme (using the full pager option in the Views display). Unfortunately, this resulted in double pagers on blocks using minipager also.
I think I need a little conditional logic in the views-view.html.twig template to check for if … is full pager
versus if … is mini pager
, or if … is page
vs. if … is block
.
How can I achieve that?
Maybe, a better approach is a template for full pager and a different one for mini pager, but I don't understand how all these templates work together to use that approach.