Skip to content

Commit

Permalink
feat: add opengraph markup to enable rich previews in messaging apps
Browse files Browse the repository at this point in the history
  • Loading branch information
bentasker committed Jul 14, 2024
1 parent 0cc5b97 commit 34fba59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<meta property="og:url" content="{{$page['props']['shot']['links']['url']}}">
<meta property="og:title" content="{{$page['props']['shot']['name']}}" />
<meta property="og:description" content="An image shared on ShotShare" />

<?php if (isset($page['props']['shot']['links']['asset_url'])): ?>
<meta property="og:image" content="{{$page['props']['shot']['links']['asset_url']}}"/>
<?php endif; ?>

<title inertia>{{ config('app.name', 'ShotShare') }}</title>

<!-- Fonts -->
Expand Down

0 comments on commit 34fba59

Please sign in to comment.