歸檔頁面按照年份對文章進行歸檔。
前置條件
We need to create a page called archives/_index.md
in the content
directory.
網站參數
名稱 | 類型 | 預設值 | 描述 |
---|---|---|---|
archive | Object | - | Archive. |
archive.paginate | Integer | 100 | Archive pagination. |
archive.dateFormat | Integer | Jan 2 | Archive date format. |
posts
and docs
.
Our documentation uses the docs
layout. If you're looking for an example that using posts
layout,
please take a look at the page Markdown Syntax.
評論