Skip to content

Collection

Archive

Bases: Page

Custom Page object used to make archive pages

__init__(pages, template, **kwargs)

Create a Page object for the pages in the collection

Collection

Collection objects serve as a way to quickly process pages that have a LARGE portion of content that is similar or file driven.

The most common form of collection would be a Blog, but can also be static pages that have their content stored in a dedicated file.

Currently, collections must come from a content_path and all be the same content type.

Example::

from render_engine import Collection

@site.register_collection
class BasicCollection(Collection):
    pass

archives() property

Returns a list of Archive pages containing the pages of data for each archive.

gen_collection(pages, template, title, items_per_page=None)

Returns a list of Archive pages containing the pages of data for each archive.