Skip to content

Commit 7f17680

Browse files
committed
Add page seo keywords to meta tags
1 parent c394193 commit 7f17680

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Http/Controllers/AbstractSeoPageController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Statikbe\FilamentFlexibleContentBlockPages\Http\Controllers;
44

5+
use Artesaos\SEOTools\Facades\SEOMeta;
56
use Artesaos\SEOTools\Facades\SEOTools;
67
use Illuminate\Routing\Controller;
78
use Illuminate\Support\Facades\Cache;
@@ -97,6 +98,10 @@ protected function setBasicSEO(Page $page)
9798
SEOTools::setTitle($title.$this->getSEOTitlePostfix($page), false);
9899
SEOTools::setDescription(($page->seo_description ?? strip_tags($page->intro)));
99100
SEOTools::opengraph()->setUrl(url()->current());
101+
102+
if($page->seo_keywords){
103+
SEOMeta::setKeywords($page->seo_keywords);
104+
}
100105
}
101106

102107
protected function getValidTitle(?string $title): ?string

0 commit comments

Comments
 (0)