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:
$ tree content/archives
├── 2021
│ ├── _index.md
├── 2022
│ ├── _index.md
├── _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