def split_into_pages(articles, n=30):
    """Split list into pages"""
    pages = []
    i = 0
    for j in articles:
        if i >= n:
            i = 0
        if i == 0:
            pages.append([j])
        else:
            pages[-1].append(j)
        i += 1
    return pages
