Fix page title

This commit is contained in:
Bruno Rybársky 2024-02-24 10:04:16 +01:00
parent 21e78d3ceb
commit 4f5732ad83

@ -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,