refactor(pagination): add `href` and `track by` in templates

Closes #1725