{% extends "base.html" %} {% block content %}

学习,实践,分享

共 {{ public_count }} 篇公开文章,统计可能延迟 30 秒。

{% for post in page_obj %}

{{ post.title }}

{{ post.author.username }} · {{ post.category.name }} · {{ post.created_at|date:"Y-m-d" }}

{{ post.body|truncatechars:120 }}

{% empty %}

暂时没有公开文章。

{% endfor %} {% include "blog/pagination.html" %} {% endblock %}