{% extends "blog_base.html"%} {% block content%} {% for post in posts %} {% set content = post.content|limit(150) %} {{ post.title }} {{ content }} {% endfor %} {% if paginator.has_previous or paginator.has_next %} {% if paginator.has_previous %} 上一页 {% endif %} {% if paginator.has_next %} 下一页 {% endif %} {% endif %} {% endblock %}