{% extends "admin/base.html" %} {% from "admin/_image_picker_field.html" import image_picker_field %} {% set is_edit = post is not none %} {% block title %}{{ 'Edit' if is_edit else 'New' }} post · bragi admin{% endblock %} {% block content %}

{{ 'Edit post' if is_edit else 'New post' }}

{% if is_edit %}

Backlinks »

{% endif %}
{% include "admin/_tiptap_editor.html" %}
{% if form.get('status') == 'published' %}
Naive UTC. Leave blank for an open-ended pin.
{% endif %}
Comma-separated. New tags are created on save; existing tags are re-used by slug.
{{ image_picker_field( name="featured_image_id", value=form.get("featured_image_id"), attachment=featured_image, thumb_storage_key=featured_image_thumb_key, label="Featured image", picker_url=url_for("attachment_admin.picker"), site_slug=request.view_args["site_slug"], helper="Optional. Used as og:image / twitter:image, the landing-page card thumbnail, and the post-detail hero. Falls back to the site's default featured image when unset." ) }} {% if is_edit %}
{% endif %}
Cancel
{% if not is_edit %} {% endif %} {% endblock %}