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.
歸檔頁面按照年份對文章進行歸檔。
前置條件
We need to create a page called archives/_index.md
in the content
directory.
1+++
2title = "歸檔"
3layout = "archive"
4+++
網站參數
名稱 | 類型 | 預設值 | 描述 |
archive | Object | - | Archive. |
archive.paginate | Integer | 100 | Archive pagination. |
archive.dateFormat | Integer | Jan 2 | Archive date format. |
評論