5
我在Hugo中遵循這個tutorial,它的工作正常。基本上,我有以下內容:如何創建一個頁面來呈現Hugo中的固定鏈接
- content
`- post
`- coding
`- html
`- my-post.md
和我的配置文件設置爲
[permalinks]
post = "/:year/:month/:title/"
這給我的網址
http://example.com/2016/12/my-post/
我想要的是讓讀者看到一個列表根據日期或年份發佈帖子。例如,如果他們訪問http://example.com/2016/12/
,他們將看到12月份發佈的帖子列表。如果他們訪問http://example.com/2016/
,他們將會看到2016年發佈的帖子列表。
Hugo有沒有辦法做到這一點?