{% extends "base.html" %} {% block title %}{{ 'Editar' if item else 'Nuevo' }} {{ meta.singular|lower }}{% endblock %} {% set f = fields or {} %} {% block main %} {% if preview_html %}
Vista previa

{{ f.title }}

{{ preview_html }}
{% endif %}
{% if item %} {% endif %} {# The byline travels with the document, like the date and the image path. An edit keeps whoever wrote it; only publishing sets it. #} {% if f and f.author %} {% endif %}

{{ ('Editar ' ~ meta.singular|lower) if item else meta.new_label }}

{% if meta.dated %} {% endif %} {% if collection == 'post' %}
Categorías {% for category in categories %} {% endfor %}
{% if f.image %}

Actual: {{ f.image }} — sube otra para reemplazarla.

{% endif %} {% endif %}
Cancelar
{% endblock %}