Skip to content

Commit

Permalink
Seo title
Browse files Browse the repository at this point in the history
  • Loading branch information
schtr4jh committed Feb 3, 2020
1 parent 95d9c0d commit 63921cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Pckg/Generic/Record/Route.php
Expand Up @@ -152,9 +152,13 @@ public function applySeoSettings()
});

$settings->each(function($value, $slug) use ($seoManager) {
if ($value) {
$seoManager->{'set' . ucfirst($slug)}($value .' @ ' . config('site.title', null));
if (!$value) {
return;
}
if ($slug === 'title') {
$value .= ' @ ' . config('site.title', null);
}
$seoManager->{'set' . ucfirst($slug)}($value);
});
}

Expand Down

0 comments on commit 63921cc

Please sign in to comment.