{% extends 'base.html' %} {% load static %} {% block title %}Tin tức{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% if current_category %} {{ current_category.name }} {% else %} Tin tức {% endif %}

{% for post in posts %}

{{ post.get_category_display }} {{ post.title }}

{{ post.created_at|date:"d/m/Y H:i" }}

{% if post.excerpt %}

{{ post.excerpt }}

{% endif %}
{% empty %}

Chưa có bài viết nào.

{% endfor %} {% if page_obj.has_other_pages %} {% endif %}
{% endblock %}