{% extends 'base.html' %} {% block title %}发现{% endblock %} {% block content %}

发现

{% for p in posts %}
{% set first = p.images[0] if p.images %} {% if first %} {{ p.title }} {% endif %}
{% endfor %}
{% endblock %}