Revert "Make num_links=0 in pagination library possible to configure"

This reverts commit a01924d2cc2d63d2bddbee85a18b423b88a9b19e.
Make 'num_links=0' configuration available in Pagination library

Changed conditions when making 'first' and 'last' links