<% crumbs = @mode == :new ? [["Posts", to("/admin/")], ["New post", nil]] : [["Posts", to("/admin/")], [@post.title.to_s.empty? ? "Untitled" : @post.title, nil]] %>

<%= @mode == :new ? "New post" : "Edit post" %>

<%= @mode == :new ? "Draft a new article in Markdown." : "Update and publish this post." %>

<% if @mode == :edit %> " target="_blank"> Preview <% end %> ">Cancel
<% if @error %>
<%= h(@error) %>
<% end %>
">

Details

Title, slug, and publishing options

placeholder="my-post-slug">
">

Leave empty to publish immediately

" placeholder="comma, separated">

Auto-generated from the first paragraph if left empty

Cover image

Header image shown on the article page

Markdown
Preview