Add page publication history and reusable blocks

This commit is contained in:
2026-11-28 18:12:30 +08:00
parent 1c927d360c
commit 3b13f6533d
40 changed files with 1239 additions and 165 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ final class SystemPage
if (!isset(self::TYPES[$type]) || !is_string($slug) || $slug === '') {
return null;
}
$page = $repo->page($slug);
$page = $repo->publishedPage($slug);
return $page && $page['page_type'] === $type && $page['status'] === 'published' ? $page : null;
}