{% extends 'base.html' %} {% from 'bootstrap/pagination.html' import render_pagination %} {% from 'macros.html' import photo_card with context %} {% block title %}主页{% endblock %} {% block content %} {% if current_user.is_authenticated %}
{% if photos %} {% for photo in photos %}
{{ photo.author.name }} {{ moment(photo.timestamp).fromNow(refresh=True) }}
{% endfor %} {% else %}

No trends.

探索

{% endif %}
{% include 'main/_sidebar.html' %}
{% if photos %} {{ render_pagination(pagination, align='center') }} {% endif %} {% else %}

Touch

捕捉精彩的每一瞬间

立刻加入

{% endif %} {% endblock %}