aboutsummaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-08-03 23:20:44 +0200
committerThomas Lange <code@nerdmind.de>2021-08-03 23:25:29 +0200
commitab5d9d899eb54f5195dfd8c220aa96daba852145 (patch)
treea34b287851f7422f4bc6fbfc6f59efeb134afb27 /core/include
parent6c20227d7e65d55f8a64e7992f5013ffeab81d0d (diff)
downloadblog-ab5d9d899eb54f5195dfd8c220aa96daba852145.tar.gz
blog-ab5d9d899eb54f5195dfd8c220aa96daba852145.tar.xz
blog-ab5d9d899eb54f5195dfd8c220aa96daba852145.zip
Show current page in categories <title> element
Posts in a category are paginated, so display the number of the current page in square brackets within the categories <title> element.
Diffstat (limited to 'core/include')
-rw-r--r--core/include/category/main.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/include/category/main.php b/core/include/category/main.php
index 46ffa75..0fcece3 100644
--- a/core/include/category/main.php
+++ b/core/include/category/main.php
@@ -126,7 +126,8 @@ $MainTemplate->set('CATEGORY', $category_data);
$MainTemplate->set('CATEGORIES', $category_list ?? []);
$MainTemplate->set('HTML', $CategoryTemplate);
$MainTemplate->set('HEAD', [
- 'NAME' => $category_data['ATTR']['NAME'],
+ 'NAME' => Application::getLanguage()->text('title_category',
+ [$category_data['ATTR']['NAME'], $currentSite]),
'DESC' => description($category_data['BODY']['HTML'](),
Application::get('CATEGORY.DESCRIPTION_SIZE')),
'PERM' => $category_data['URL'],