Skip to content

Commit

Permalink
Improves meta tags for the site layout
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cintra committed Oct 31, 2024
1 parent 3551cfd commit 363a5cd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion stubs/site/resources-site/views/site-layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{ config('app.name', 'Modular') }}</title>
<title>@yield('meta-title', config('app.name', 'Modular'))</title>

<meta
name="description"
content="@yield('meta-description', 'Laravel and Vue Development With Joy')"
/>

<!-- Improves Lighthouse score (related to Best Practices)-->
@if (app()->environment('production'))
<meta
http-equiv="Content-Security-Policy"
content="upgrade-insecure-requests"
/>
@endif

<meta name="csrf-token" content="{{ csrf_token() }}">

Expand Down

0 comments on commit 363a5cd

Please sign in to comment.