Skip to content

Commit

Permalink
Update meta tags to be HTML5 compliant by removing self-closing slash…
Browse files Browse the repository at this point in the history
…es (#39)

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

* fix: Undo autoformatting

---------

Co-authored-by: machot <[email protected]>
  • Loading branch information
tamas-macsek and machot authored Nov 22, 2024
1 parent 76d0f9e commit f4ec8c0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions resources/views/components/meta.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,34 @@

@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')" />
<meta property="og:description" content="@seo('description')">
<meta name="description" content="@seo('description')">
@endif

@if(seo('keywords'))
<meta name="keywords" content="@seo('keywords')" />
<meta name="keywords" content="@seo('keywords')">
@endif

@if(seo('type'))
<meta property="og:type" content="@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('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'))
<meta property="og:url" content="@seo('url')" />
<link rel="canonical" href="@seo('url')" />
<meta property="og:url" content="@seo('url')">
<link rel="canonical" href="@seo('url')">
@endif

@foreach(seo()->tags() as $tag)
Expand Down

0 comments on commit f4ec8c0

Please sign in to comment.