Update (fix): seo

This commit is contained in:
2023-11-28 19:43:50 +08:00
parent 9ee00fa830
commit ee6273021a

View File

@@ -74,6 +74,8 @@ public function show(Request $request, $ai_tool_slug)
$faq_context = Context::create(FAQPage::class, $faqData);
SEOTools::setTitle($ai_tool->tool_name . ": ". $ai_tool->tagline);
SEOTools::setDescription(implode(" ",str_extract_sentences($ai_tool->summary, 2)));
SEOTools::metatags();
SEOTools::twitter()->addImage($ai_tool->screenshot_img);
SEOTools::opengraph()->addImage($ai_tool->screenshot_img);