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#
| Name | Type | Default | Description | 
|---|---|---|---|
archive | Object | - | Archive. | 
archive.dateFormat | Integer | Jan 2 | Archive date format. | 
archive.basePath | String | /archives | 
Comments