fix for page rendering always defaulting to page

pull/84/head
Ro 3 years ago
parent db385d938c
commit 71dc41e950

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

Loading…
Cancel
Save