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 | String | Jan 2 | Archive date format. |
archive.monthFormat | String | January | Archive month format, e.g. 1 , 01 , Jan and January . |
archive.basePath | String | /archives |
Comments