【发布时间】:2017-05-09 14:58:09
【问题描述】:
我在 Hugo 中关注了这个 tutorial,它工作正常。基本上我有以下内容:
- 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 中有没有办法做到这一点?
【问题讨论】:
标签: go static-site hugo