Paginator for articles ( posts ) and sections

How to add pagination for articles and sections (folders) at the same time?

In the list.html file

For example I want to display the pagination of list of articles (history.…) and section (history\africa) which is located in the \history folder ?