Skip to content

Commit

Permalink
Changed separator in titles (no title processing in s2_typo now).
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed Apr 6, 2024
1 parent a97244d commit b605d32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _extensions/s2_blog/Controller/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion _include/src/Template/HtmlTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function toHttpResponse(): Response

// HTML head
$replace['<!-- s2_head_title -->'] = 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'] . ' &mdash; ' : '') . $this->dynamicConfigProvider->get('S2_SITE_NAME') :
$this->page['head_title'];

// Meta tags processing
Expand Down

0 comments on commit b605d32

Please sign in to comment.