mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#1756 Category seo
This commit is contained in:
parent
3cd7fb1af3
commit
1b244c51b3
@ -247,13 +247,13 @@ class AdvsController extends PublicController
|
||||
|
||||
if ($categoryId) {
|
||||
$seo_keywords = $this->category_model->getMeta_keywords($categoryId->id);
|
||||
$seo_description = $this->category_model->getMeta_description($categoryId->id) . ' ' .
|
||||
implode(',', $seo_keywords);
|
||||
$seo_description = $this->category_model->getMeta_description($categoryId->id);
|
||||
$seo_title = $this->category_model->getMeta_title($categoryId->id);
|
||||
|
||||
$this->template->set('og_description', $seo_description);
|
||||
$this->template->set('meta_description', $seo_description);
|
||||
$this->template->set('meta_title', $seo_title);
|
||||
$this->template->set('meta_keywords', implode(', ', $seo_keywords));
|
||||
|
||||
$mainCats = $this->category_model->getMains($categoryId->id);
|
||||
$current_cat = $this->category_model->getCat($categoryId->id);
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
<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="{{ template.get('meta_description', setting_value('streams::description'))|slice(0,160) }}"/>
|
||||
<meta name="keywords" content="{{ template.get('meta_keywords') }}" />
|
||||
<!-- Meta Tags -->
|
||||
|
||||
<title>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user