Description: Used to get the previous document data
Usage:{% prevArchive 变量名称 %}If the variable is defined as prev{% prevArchive prev %}...{% endprevArchive %}
prevArchive does not support parameters.
prevArchive supports the following fields:
- Document ID
Id - Document title
Title - Document link
Link - Document keyword
Keywords - Document description
Description - Document Category ID
CategoryId - Document Views
Views - Document cover first image
Logo - Document cover thumbnail
Thumb - Document comment count
CommentCount - Document add time
CreatedTime - Document Update Time
UpdatedTime
Code example
{% prevArchive prev %}
上一篇:
{% if prev %}
<a href="{{prev.Link}}">{{prev.Title}}</a>
{% else %}
没有了
{% endif %}
{% endprevArchive %}
Display image
{% prevArchive prev %}
上一篇:
{% if prev %}
<a href="{{prev.Link}}">
<img src="{{prev.Thumb}}" />
<span>{{prev.Title}}</span>
</a>
{% else %}
没有了
{% endif %}
{% endprevArchive %}