{% if posts %} {% for post in posts %}

{{ post.title }}

{{ post.body|striptags|truncate }} 更多

评论: {{ post.comments|length }}个   类别: {{ post.category.name }} {{ moment(post.timestamp).format('LL') }} {% if not loop.last %}
{% endif %} {% endfor %} {% else %}
没有文章
{% if current_user.is_authenticated %} 现在创作 {% endif %}
{% endif %}