hot fix for page rendering defaulting to page every time

This commit is contained in:
Ro 2022-01-04 16:57:27 -08:00
commit 6c053868a2

View file

@ -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
$layout = "page"; if ($layout == "" || $layout == null) {
$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";