{% extends 'base.html' %} {% from 'bootstrap/pagination.html' import render_pagination %} {% block title %}文章管理{% endblock title %} {% block content %} {% if posts %} {% for post in posts %} {% endfor %}
No. 标题 分类 日期 评论 字数 操作
{{ loop.index + ((pagination.page - 1) * config.MYBLOG_MANAGE_POST_PER_PAGE) }} {{ post.title }} {{ post.category.name }} {{ moment(post.timestamp).format('LL')}} {{ post.comments|length }} {{ post.body|length }} 编辑
{% else %}
这里一篇文章都没有...
{% endif %} {% endblock content %}