The archive page is a collection of posts grouped by year.

Prerequisites

We need to create a page called archives/_index.md in the content directory.

1+++
2title = "Archives"
3layout = "archive"
4+++

Site Parameters

NameTypeDefaultDescription
archiveObject-Archive.
archive.paginateInteger100Archive pagination.
archive.dateFormatIntegerJan 2Archive date format.