diff --git a/lib/collection.php b/lib/collection.php index 7a58c73..0344db0 100755 --- a/lib/collection.php +++ b/lib/collection.php @@ -15,7 +15,7 @@ public function toString(): string { foreach ($this->data() as $module) { $moduleTemplate = new Template($module->intendedTemplate()); $html .= $moduleTemplate->render([ - 'page' => $module->parent(), + 'page' => $module->parents()->first(), 'module' => $module, 'site' => site(), ]);