fix for page rendering always defaulting to page
This commit is contained in:
parent
db385d938c
commit
71dc41e950
1 changed files with 4 additions and 1 deletions
|
@ -78,7 +78,10 @@ class Render
|
|||
|
||||
$layout = $page["layout"];
|
||||
//new pages have no layout, so defautl for now
|
||||
$layout = "page";
|
||||
if ($layout == "" || $layout == null) {
|
||||
$layout = "page";
|
||||
}
|
||||
|
||||
$template = $this->theme . "/" . $layout . ".twig";
|
||||
if (str_contains($page["layout"], "index")) {
|
||||
$location = "../public/index.html";
|
||||
|
|
Loading…
Reference in a new issue