'', 'slug' => '', 'excerpt' => '', 'body' => '', '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(); ?>

Blog editor

Save as a draft or publish the article.

Use lowercase letters, numbers, and hyphens.

Body content is rendered as escaped plain text on the public page.

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

Cancel