{% extends "base.html" %} {% block title %}{{ post.title }} · 知行博客{% endblock %} {% block content %}

{{ post.title }}

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

{% if post.status == 'draft' %}

这是一篇草稿,只有作者可以查看。

{% endif %} {% if user.pk == post.author_id %}

编辑 · 删除

{% endif %}
{{ post.body|linebreaks }}
{% endblock %}