Since `v0.68.0`, HBS uses Hugo Pipes to generate CSS and JS assets, there are a lot of breaking changes, please check out the
CHANGELOG and
UPGRADE for details.
This theme provides several kinds of layouts, such as
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.
归档页面按照年份对文章进行归档。
前置条件
我們需要在 content
目錄下創建一個名為 archives/_ index.md
的檔案。
1+++
2title = "归档"
3layout = "archive"
4+++
Site Parameters
名称 | 类型 | 默认值 | 描述 |
archive | Object | - | Archive. |
archive.paginate | Integer | 100 | Archive pagination. |
archive.dateFormat | Integer | Jan 2 | Archive date format. |
评论