【发布时间】:2017-10-26 11:22:56
【问题描述】:
我在content中的结构:
content
|-post
| |-00.md
| |-01.md
| |-02.md
|-about.md
在帖子的单个模板中,我希望有一个页脚:
- 是指向下一篇文章的链接,或者,如果没有下一篇文章可用
- 是文本“待续”。
在伪模板代码中意味着:
{{ if nextpost.exists }} #. becomes nexpost here
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
nextpost 是 currentpost+1
如何创建这种链接?
【问题讨论】:
标签: hugo