Fix pagination on articles and notes pages