{% extends "base_content.html" %} {% load static %} {% block title %}{% if is_new %}新建文章{% else %}编辑文章{% endif %} · 拾编{% endblock %} {% block description %}博客文章编辑{% endblock %} {% block brand_sub %}MIND MAP · STUDIO{% endblock %} {% block footer %}© 2026 拾光写字的地方{% endblock %} {% block extra_head %}{% endblock %} {% block content %}
← 写作台

拾编 · STUDIO

{% if is_new %}新建文章{% else %}编辑文章{% endif %}

{% if post %} /post/{{ post.slug }}/ · 最后更新 {{ post.updated_at|date:"Y-m-d H:i" }} {% else %} 写好后可以先存草稿,再从写作台发布。 {% endif %}

{% if post and post.status == 'published' %} 查看文章 ↗ {% endif %}
{% include "studio/_messages.html" %}
{% csrf_token %} {{ form.non_field_errors }}
{{ form.title }} {{ form.title.errors }}
{{ form.slug }}

留空会自动生成;文章地址是 /post/<slug>/。

{{ form.content_format }}
0 字
{{ form.content }} {{ form.content.errors }}
{% if post %}
{% csrf_token %}
{% endif %}
{% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% endblock %}