diff --git a/lib/page.php b/lib/page.php index 5de3bb8..db2c600 100644 --- a/lib/page.php +++ b/lib/page.php @@ -114,12 +114,14 @@ function renderPage($page_name = null, $site_name = null): array } if(!empty($pageMetadata["parameters"]["page_title"])){ - $page_title = $routerConfig['site_prefix'] . " " . $site_title . " " . $pageMetadata["parameters"]["page_title"]; + $page_title = $pageMetadata["parameters"]["page_title"]; } else{ $page_title = $page_name; } + $page_title = $routerConfig['site_prefix'] . " " . $site_title . " " . $page_title; + return [ "PageContent" => $page, "PageName" => $page_name,