+++ title = "Archive Layout" description = "" date = 2021-12-03T11:16:51+08:00 featured = false comment = true toc = true reward = true categories = [ "Archive" ] tags = [ ] series = [ "Docs" ] images = [] aliases = [ "/en/posts/archives", "/en/docs/archives" ] authors = ["RazonYang"]
+++
The archive page is a collection of posts grouped by year.
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.
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 |