我的结构content
:
content
|-post
| |-00.md
| |-01.md
| |-02.md
|-about.md
在帖子的单个模板中,我想要一个页脚:
- 是指向下一篇文章的链接,或者,如果没有下一篇文章可用
- 是文本“待续”。
在伪模板代码中,这意味着:
{{ if nextpost.exists }} #. becomes nexpost here
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
当前nextpost
位置+1
如何创建这种链接?