Fix page title
This commit is contained in:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user