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

Prerequisites

The pages aren’t not created automatically, we need to create archives sections first:

1$ tree content/archives
2├── 2021
3│   ├── _index.md
4├── 2022
5│   ├── _index.md
6├── _index.md

The content of those files just contain a title parameter.

Site Parameters

NameTypeDefaultDescription
archiveObject-Archive.
archive.dateFormatStringJan 2Archive date format.
archive.monthFormatStringJanuaryArchive month format, e.g. 1, 01, Jan and January.
archive.basePathString/archives