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

Update meta tags to be HTML5 compliant by removing self-closing slashes

This commit is contained in:
machot 2024-09-22 13:52:29 +02:00
parent 76d0f9efac
commit d555001146

View file

@ -1,42 +1,48 @@
@if(seo('title'))
@if (seo('title'))
<title>@seo('title')</title>
@unless(seo()->hasTag('og:title'))
@unless (seo()->hasTag('og:title'))
{{-- If an og:title tag is provided directly, it's included in the @foreach below --}}
<meta property="og:title" content="@seo('title')" />
<meta property="og:title" content="@seo('title')">
@endunless
@endif
@if(seo('description'))
<meta property="og:description" content="@seo('description')" />
<meta name="description" content="@seo('description')" />
@if (seo('description'))
<meta property="og:description" content="@seo('description')">
<meta name="description" content="@seo('description')">
@endif
@if(seo('keywords'))
<meta name="keywords" content="@seo('keywords')" />
@if (seo('keywords'))
<meta name="keywords" content="@seo('keywords')">
@endif
@if(seo('type'))
<meta property="og:type" content="@seo('type')" />
@if (seo('type'))
<meta property="og:type" content="@seo('type')">
@else
<meta property="og:type" content="website" />
<meta property="og:type" content="website">
@endif
@if(seo('site')) <meta property="og:site_name" content="@seo('site')" /> @endif
@if(seo('locale')) <meta property="og:locale" content="@seo('locale')" /> @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')" />
@if (seo('site'))
<meta property="og:site_name" content="@seo('site')">
@endif
@foreach(seo()->tags() as $tag)
@if (seo('locale'))
<meta property="og:locale" content="@seo('locale')">
@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)
@foreach (seo()->extensions() as $extension)
<x-dynamic-component :component="$extension" />
@endforeach