Show page-specific title before site name

This commit is contained in:
Marcus Funch 2025-05-31 21:01:15 +02:00
parent 544b926c9e
commit 441584b0d1

View file

@ -201,8 +201,8 @@ class Page implements ArrayAccess
$this->page['title'] = $l10n->t(ucfirst($args->getModuleName()));
}
// Prepend the sitename to the page title
$this->page['title'] = $config->get('config', 'sitename', '') . (!empty($this->page['title']) ? ' | ' . $this->page['title'] : '');
// Append the sitename to the page title
$this->page['title'] = (!empty($this->page['title']) ? $this->page['title'] . ' | ' : '') . $config->get('config', 'sitename', '');
if (!empty(Renderer::$theme['stylesheet'])) {
$stylesheet = Renderer::$theme['stylesheet'];