#1756 Category seo

This commit is contained in:
Diatrex 2020-07-10 14:21:44 +03:00
parent 29a6799ed4
commit c9abc07d60
2 changed files with 4 additions and 4 deletions

View File

@ -247,10 +247,11 @@ class AdvsController extends PublicController
if ($categoryId) {
$seo_keywords = $this->category_model->getMeta_keywords($categoryId->id);
$seo_description = $this->category_model->getMeta_description($categoryId->id);
$seo_description = $this->category_model->getMeta_description($categoryId->id) . ' ' .
implode(',', $seo_keywords);
$seo_title = $this->category_model->getMeta_title($categoryId->id);
$this->template->set('meta_keywords', implode(',', $seo_keywords));
$this->template->set('og_description', $seo_description);
$this->template->set('meta_description', $seo_description);
$this->template->set('meta_title', $seo_title);
@ -299,7 +300,6 @@ class AdvsController extends PublicController
}
$this->template->set('showTitle', false);
$this->template->set('meta_title', $catText);
$this->template->set('meta_description', $catText);
}
$compact = compact('advs', 'countries', 'mainCats', 'subCats', 'checkboxes', 'request', 'param',

View File

@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="{{ setting_value('streams::description')|slice(0,160) }}"/>
<meta name="description" content="{{ template.get('meta_description', setting_value('streams::description'))|slice(0,160) }}"/>
<!-- Meta Tags -->
<title>