diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 4e600a7..e5deea7 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -4,6 +4,7 @@ namespace App\Http\Controllers; use App\Home; use Artesaos\SEOTools\Traits\SEOTools as SEOToolsTrait; +use DateTime; class PublicController extends Controller { @@ -18,6 +19,10 @@ class PublicController extends Controller ->addImages(array_map(static function($picture) { return asset($picture); }, $home->pictures)); + $this->seo() + ->opengraph() + ->addProperty('article:published_time', $home->created_at->format(DateTime::ATOM)) + ->addProperty('article:author', 'Shikiryu'); return view('public.view', ['home' => $home]); } diff --git a/config/seotools.php b/config/seotools.php index 38d7c40..d56585a 100644 --- a/config/seotools.php +++ b/config/seotools.php @@ -40,7 +40,7 @@ return [ 'description' => false, 'url' => false, // Set null for using Url::current(), set false to total remove 'type' => 'article', - 'site_name' => false, + 'site_name' => 'Le projet Bretagne', 'images' => [], ], ],