1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 01:44:03 +00:00

Add type()

This commit is contained in:
Samuel Štancl 2022-03-30 00:50:40 +02:00
parent 1450ce17a7
commit 94be0f7e06
3 changed files with 11 additions and 7 deletions

View file

@ -12,10 +12,11 @@
<meta name="description" content="@seo('description')" />
@endif
@unless(seo()->hasTag('og:type'))
{{-- If an og:type tag is provided directly, it's included in the @foreach below --}}
@if(seo('type'))
<meta property="og:type" content="@seo('type')" />
@else
<meta property="og:type" content="website" />
@endunless
@endif
@if(seo('site')) <meta property="og:site_name" content="@seo('site')"> @endif