From 4f5732ad838828ed4d50d087a8c3fa7a91b6b311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 24 Feb 2024 10:04:16 +0100 Subject: [PATCH] Fix page title --- lib/page.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,