chapter hgroup + calming decor

This commit is contained in:
Julie Blanc 2026-04-07 18:09:15 +02:00
parent 0545b131de
commit 94d14d70c1
370 changed files with 9583 additions and 1566 deletions

View file

@ -273,18 +273,17 @@ class PageCreateDialog
}
$props = [
'slug' => '__new__',
'slug' => $this->slug ?? '__new__',
'template' => $this->template,
'model' => $this->template,
'parent' => $this->parent instanceof Page ? $this->parent : null
'parent' => $this->parent instanceof Page ? $this->parent : null,
'content' => ['title' => $this->title],
];
// make sure that a UUID gets generated
// and added to content right away
if (Uuids::enabled() === true) {
$props['content'] = [
'uuid' => $this->uuid = Uuid::generate()
];
$props['content']['uuid'] = $this->uuid = Uuid::generate();
}
$this->model = Page::factory($props);