Skip to main content

contexts/archive

The archive context.

Attributes

Name Type Description
posts list A list of the posts to be displayed.
posts[].created_at datetime The post’s date and time it was created.
posts[].id str The post’s unique id.
posts[].linked_url str The post’s linked URL.
posts[].published_at datetime The post’s date and time it was published.
posts[].title str The post’s title.
posts[].updated_at datetime The post’s date and time it was last updated.
posts[].url str The post’s URL.

Description

The archive context is used when rendering the archive template.

Examples

{
  'posts': [
    {
      'created_at': datetime(2015, 10, 26, 10, 39, 51, tzinfo=<DstTzInfo 'Europe/Paris' CET+1:00:00 STD>),
      'id': 'dd852700-5c89-479f-b695-874137225872',
      'linked_url': 'http://www.bonsoy.com',
      'published_at': datetime(2015, 10, 26, 12, 00, tzinfo=<DstTzInfo 'Europe/Paris' CET+1:00:00 STD>),
      'title': 'Top 5 Alternatives to Milk in Coffee',
      'updated_at': datetime(2015, 10, 26, 11, 18, 24, tzinfo=<DstTzInfo 'Europe/Paris' CET+1:00:00 STD>),
      'url': '/blog/top-5-alternatives-to-milk-in-coffee'
    }
  ]
}