Skip to content

Commit

Permalink
🔍 Improve social sharing SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jan 31, 2024
1 parent fc8feb8 commit b8ea97d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Http/Middleware/AddSeoDefaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ public function handle(Request $request, Closure $next): Response

LinkMeta::make()
->rel('mask-icon')
->attr('color', '#3b82f6')
->attr('color', '#f97316')
->href('/safari-pinned-tab.svg'),

Meta::make()
->name('theme-color')
->content('#3b82f6'),
->content('#f97316'),

Meta::make()
->name('msapplication-TileColor')
->content('#3b82f6'),
->content('#f97316'),

OpenGraph::make()
->property('title')
Expand All @@ -81,7 +81,7 @@ public function handle(Request $request, Closure $next): Response

Twitter::make()
->name('image')
->content(asset('/apple-touch-icon.png')),
->content(asset('/social.png')),
]);

return $next($request);
Expand Down
Binary file added public/social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8ea97d

Please sign in to comment.