{% extends 'baykeshop/article/base.html' %} {% load i18n static baykeshop baykeconfig %} {% block content %}
{% for article in page_obj %}

{% if article.image %} {% else %} {% endif %}

{{ article.title }}

{% if article.user %} {{ article.user.username }} {% endif %} {{ article.created_time|timesince }}前 {{ article.category.name }}

{{ article.description|truncatechars:80 }}

{% empty %}
{% trans '暂无文章' %}
{% endfor %}
{% paginator_template page_obj request %} {% endblock %}