Skip to content

Commit

Permalink
Add social image route for default site.=
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed May 14, 2024
1 parent b6a4d9d commit 5332354
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
'content_type' => 'application/xml',
]);

// The Social Image route to generate social images.
Route::statamic(URL::tidy('social-images/{id}'), 'statamic-peak-seo::social_images', [
'layout' => null,
]);

// The Social Image route to generate social images.
Route::statamic(URL::tidy('{current_site}/social-images/{id}'), 'statamic-peak-seo::social_images', [
'layout' => null,
Expand Down

0 comments on commit 5332354

Please sign in to comment.