Skip to content

Commit f4ec8c0

Browse files
tamas-macsekmachot
andauthored
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 <[email protected]>
1 parent 76d0f9e commit f4ec8c0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

resources/views/components/meta.blade.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@
33

44
@unless(seo()->hasTag('og:title'))
55
{{-- If an og:title tag is provided directly, it's included in the @foreach below --}}
6-
<meta property="og:title" content="@seo('title')" />
6+
<meta property="og:title" content="@seo('title')">
77
@endunless
88
@endif
99

1010
@if(seo('description'))
11-
<meta property="og:description" content="@seo('description')" />
12-
<meta name="description" content="@seo('description')" />
11+
<meta property="og:description" content="@seo('description')">
12+
<meta name="description" content="@seo('description')">
1313
@endif
1414

1515
@if(seo('keywords'))
16-
<meta name="keywords" content="@seo('keywords')" />
16+
<meta name="keywords" content="@seo('keywords')">
1717
@endif
1818

1919
@if(seo('type'))
20-
<meta property="og:type" content="@seo('type')" />
20+
<meta property="og:type" content="@seo('type')">
2121
@else
22-
<meta property="og:type" content="website" />
22+
<meta property="og:type" content="website">
2323
@endif
2424

25-
@if(seo('site')) <meta property="og:site_name" content="@seo('site')" /> @endif
25+
@if(seo('site')) <meta property="og:site_name" content="@seo('site')"> @endif
2626

27-
@if(seo('locale')) <meta property="og:locale" content="@seo('locale')" /> @endif
27+
@if(seo('locale')) <meta property="og:locale" content="@seo('locale')"> @endif
2828

29-
@if(seo('image')) <meta property="og:image" content="@seo('image')" /> @endif
29+
@if(seo('image')) <meta property="og:image" content="@seo('image')"> @endif
3030

3131
@if(seo('url'))
32-
<meta property="og:url" content="@seo('url')" />
33-
<link rel="canonical" href="@seo('url')" />
32+
<meta property="og:url" content="@seo('url')">
33+
<link rel="canonical" href="@seo('url')">
3434
@endif
3535

3636
@foreach(seo()->tags() as $tag)

0 commit comments

Comments
 (0)