From b605d3287cf9db39678e8af3d1a9380cbfe734c0 Mon Sep 17 00:00:00 2001 From: Roman Parpalak Date: Sat, 6 Apr 2024 23:41:29 +0300 Subject: [PATCH] Changed separator in titles (no title processing in s2_typo now). --- _extensions/s2_blog/Controller/BlogController.php | 2 +- _include/src/Template/HtmlTemplate.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_extensions/s2_blog/Controller/BlogController.php b/_extensions/s2_blog/Controller/BlogController.php index 41e96f35..a20eae69 100644 --- a/_extensions/s2_blog/Controller/BlogController.php +++ b/_extensions/s2_blog/Controller/BlogController.php @@ -69,7 +69,7 @@ public function handle(Request $request): Response } $headTitle = $template->getFromPlaceholder('head_title'); - $template->putInPlaceholder('head_title', $headTitle === null ? $this->blogTitle : $headTitle . ' - ' . $this->blogTitle); + $template->putInPlaceholder('head_title', $headTitle === null ? $this->blogTitle : $headTitle . '   ' . $this->blogTitle); return $template->toHttpResponse(); } diff --git a/_include/src/Template/HtmlTemplate.php b/_include/src/Template/HtmlTemplate.php index b639626c..4c3cd096 100644 --- a/_include/src/Template/HtmlTemplate.php +++ b/_include/src/Template/HtmlTemplate.php @@ -62,7 +62,7 @@ public function toHttpResponse(): Response // HTML head $replace[''] = empty($this->page['head_title']) ? - (!empty($this->page['title']) ? $this->page['title'] . ' - ' : '') . $this->dynamicConfigProvider->get('S2_SITE_NAME') : + (!empty($this->page['title']) ? $this->page['title'] . ' — ' : '') . $this->dynamicConfigProvider->get('S2_SITE_NAME') : $this->page['head_title']; // Meta tags processing