1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 01:44:03 +00:00
laravel-seo/assets/views/components/meta.blade.php
2022-03-23 19:19:52 +01:00

33 lines
904 B
PHP

@if(seo('title'))
<title>@seo('title')</title>
@if(seo()->hasTag('og:title'))
<meta property="og:title" content="@seo('og:title')" />
@else
<meta property="og:title" content="@seo('title')" />
@endif
@endif
@if(seo('description'))
<meta property="og:description" content="@seo('description')" />
<meta name="description" content="@seo('description')" />
@endif
<meta property="og:type" content="website" />
@if(seo('site')) <meta property="og:site_name" content="@seo('site')"> @endif
@if(seo('image')) <meta property="og:image" content="@seo('image')" /> @endif
@if(seo('url'))
<meta property="og:url" content="@seo('url')" />
<link rel="canonical" href="@seo('url')" />
@endif
@foreach(seo()->tags() as $tag)
{!! $tag !!}
@endforeach
@foreach(seo()->extensions() as $extension)
<x-dynamic-component :component="$extension" />
@endforeach