Update pagination for ugly permalinks; closes #112