{% extends 'base.html' %} {% load static i18n i18n_tags %} {% block breadcrumb %}{% include 'includes/breadcrumb.html' %}{% endblock %} {% block content %}
{% trans '新闻分类' %}
{% trans '全部新闻' %} {% for cat in categories %} {% ml_field cat 'name' %} {% endfor %}
{% for news in page_obj %}
{% if news.cover_image %}
{% ml_field news 'title' %}
{% endif %}
{{ news.category.name_zh }} {% if news.is_top %}{% trans '置顶' %}{% endif %}
{% ml_field news 'title' %}

{% ml_field news 'summary' %}

{{ news.created_at|date:"Y-m-d" }}   {{ news.view_count }} {% trans '阅读全文' %}
{% empty %}
{% trans '暂无新闻数据' %}
{% endfor %} {% include 'includes/pagination.html' %}
{% endblock %}