Update (config): enable canonical
Update (migration): Add category type Add (admin): Add post cliffhanger
This commit is contained in:
@@ -121,9 +121,19 @@ public function countryCategory(Request $request, $country, $category)
|
||||
SEOTools::opengraph();
|
||||
SEOTools::jsonLd();
|
||||
|
||||
$this_month = now()->format('F Y');
|
||||
|
||||
$country_name = get_country_name_by_iso($country_locale->country_iso);
|
||||
|
||||
SEOTools::setTitle("Top {$category->name} Reviews in {$country_name}");
|
||||
//dd($category->type);
|
||||
|
||||
if ($category->type == 'review') {
|
||||
SEOTools::setTitle("Top {$category->name} Reviews for {$this_month} in {$country_name}");
|
||||
} elseif ($category->type == 'deals') {
|
||||
SEOTools::setTitle("{$this_month} Latest Deals, Coupon Codes & Vouchers for {$country_name}");
|
||||
} elseif ($category->type == 'launch') {
|
||||
SEOTools::setTitle("New {$this_month} Product Launches in {$country_name}");
|
||||
}
|
||||
|
||||
$category_name = strtolower($category->name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user