pagination

add paginate setting to global config
previous / next

conditionally show prev / next