mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 01:44:03 +00:00
Update meta tags to be HTML5 compliant by removing self-closing slashes (#39)
* Update meta tags to be HTML5 compliant by removing self-closing slashes * fix: Undo autoformatting --------- Co-authored-by: machot <machot@webdew.hu>
This commit is contained in:
parent
76d0f9efac
commit
f4ec8c0fab
1 changed files with 11 additions and 11 deletions
|
|
@ -3,34 +3,34 @@
|
||||||
|
|
||||||
@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 --}}
|
{{-- 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
|
@endunless
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(seo('description'))
|
@if(seo('description'))
|
||||||
<meta property="og:description" content="@seo('description')" />
|
<meta property="og:description" content="@seo('description')">
|
||||||
<meta name="description" content="@seo('description')" />
|
<meta name="description" content="@seo('description')">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(seo('keywords'))
|
@if(seo('keywords'))
|
||||||
<meta name="keywords" content="@seo('keywords')" />
|
<meta name="keywords" content="@seo('keywords')">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(seo('type'))
|
@if(seo('type'))
|
||||||
<meta property="og:type" content="@seo('type')" />
|
<meta property="og:type" content="@seo('type')">
|
||||||
@else
|
@else
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(seo('site')) <meta property="og:site_name" content="@seo('site')" /> @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('locale')) <meta property="og:locale" content="@seo('locale')"> @endif
|
||||||
|
|
||||||
@if(seo('image')) <meta property="og:image" content="@seo('image')" /> @endif
|
@if(seo('image')) <meta property="og:image" content="@seo('image')"> @endif
|
||||||
|
|
||||||
@if(seo('url'))
|
@if(seo('url'))
|
||||||
<meta property="og:url" content="@seo('url')" />
|
<meta property="og:url" content="@seo('url')">
|
||||||
<link rel="canonical" href="@seo('url')" />
|
<link rel="canonical" href="@seo('url')">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@foreach(seo()->tags() as $tag)
|
@foreach(seo()->tags() as $tag)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue