'', 'slug' => '', 'excerpt' => '', 'body' => '', 'featured_image_id' => null, 'category_id' => null, 'status' => 'draft', 'published_at' => null, ]; if (isset($_GET['id']) && ctype_digit((string) $_GET['id'])) { $post = $postsRepository->findWithId($_GET['id']) ?? $post; } $isEditing = isset($post['id']); $publishedAt = $post['published_at'] ? date('Y-m-d\TH:i', strtotime($post['published_at'])) : ''; $categories = (new CategoriesRepository())->getAllForAdmin(); $imageUploads = array_values(array_filter((new UploadRepository())->getAll(), static fn($file): bool => is_string($file->mime_type ?? null) && str_starts_with(strtolower($file->mime_type), 'image/'))); ?>

Blog editor

Save as a draft or publish the article.

Use lowercase letters, numbers, and hyphens.

Use Markdown for headings, lists, quotes, rules, code blocks, links, and emphasis.

Alt text comes from the media library; the image Markdown is inserted at the cursor.

Choose an image from the existing media library.

Leave blank to use the current time when publishing. Future dates are not supported.

Cancel