Skip to content

Latest commit

 

History

History
56 lines (48 loc) · 1.09 KB

File metadata and controls

56 lines (48 loc) · 1.09 KB

+++ title = "歸檔頁面" description = "" date = 2021-12-03T11:16:51+08:00 featured = false comment = true toc = true reward = true categories = [ "歸檔" ] tags = [ ] series = [ "文檔" ] images = [] aliases = [ "/zh-tw/posts/archives", "/zh-tw/docs/archives" ] authors = ["RazonYang"]

[menu.footer]

parent = "docs"

weight = 7

[menu.footer.params]

icon = ''

+++

歸檔頁面按照年份對文章進行歸檔。

前置條件

歸檔頁面不會自動創建,因此我們需要先創建一些 Sections:

$ tree content/archives
├── 2021
│   ├── _index.md
├── 2022
│   ├── _index.md
├── _index.md

這些文件只需包含一個 title 屬性即可。

網站參數

名稱 類型 預設值 描述
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