hot fix for page rendering defaulting to page every time

beta
Ro 3 years ago
commit 6c053868a2

@ -78,7 +78,10 @@ class Render
$layout = $page["layout"];
//new pages have no layout, so defautl for now
if ($layout == "" || $layout == null) {
$layout = "page";
}
$template = $this->theme . "/" . $layout . ".twig";
if (str_contains($page["layout"], "index")) {
$location = "../public/index.html";

Loading…
Cancel
Save