Added post-per-page config
Added pagination