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有没有办法做到这一点?