basic-business-template/content/includes/meta.blade.php

182 lines
6.5 KiB
PHP

<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="Generator" content="Lumino CMS" />
<meta name="csrf-token" content="{{csrf_token()}}"/>
<meta name="url-base" content="{{url('/')}}">
<link rel="apple-touch-icon" sizes="180x180" href="{{$favicon['180']}}">
<link rel="icon" type="image/png" sizes="32x32" href="{{$favicon['32']}}">
<link rel="icon" type="image/png" sizes="16x16" href="{{$favicon['16']}}">
@if(Route::currentRouteName() == 'index')
<title>{{config('settings.name')}}</title>
<meta name="description" content="{{config('settings.description')}}" />
<meta property="og:url" content="{{url('/')}}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{config('settings.name')}}">
<meta property="og:description" content="{{config('settings.description')}}">
<meta property="og:image" content="{{$cover}}">
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="{{url('/')}}">
<meta property="twitter:url" content="{{url('/')}}">
<meta name="twitter:title" content="{{config('settings.name')}}">
<meta name="twitter:description" content="{{config('settings.description')}}">
<meta name="twitter:image" content="{{$cover}}">
@elseif(str_starts_with(Route::currentRouteName(), 'page.'))
<meta property="og:site_name" content="{{config('settings.name')}}" />
<meta property="og:title" content="{{config('settings.name')}}" />
<meta property="og:description" content="{{config('settings.description')}}" />
<meta property="og:url" content="{{url('/')}}" />
<meta property="og:image" content="{{$cover}}" />
<meta property="og:image:secure_url" content="" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="640" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:image" content=""/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"image": "https://www.example.com/example_image.jpg",
"url": "https://www.example.com",
"sameAs": ["https://example.net/profile/example1234", "https://example.org/example1234"],
"logo": "https://www.example.com/images/logo.png",
"name": "Example Corporation",
"description": "The example corporation is well-known for producing high-quality widgets",
"email": "contact@example.com",
"telephone": "+47-99-999-9999",
"address": {
"@type": "PostalAddress",
"streetAddress": "Rue Improbable 99",
"addressLocality": "Paris",
"addressCountry": "FR",
"addressRegion": "Ile-de-France",
"postalCode": "75001"
},
"vatID": "FR12345678901",
"iso6523Code": "0199:724500PMK2A2M1SQQ228"
}
@elseif(Route::currentRouteName() == 'lists.show' and isset($content))
<!-- meta tag -->
<!--Content -->
@elseif(Route::currentRouteName() == 'contents.show' and isset($content))
<title>{{ $content->title }}</title>
<meta name="description" content="">
<meta property="og:description" content="">
<meta property="og:type" content="article">
<meta property="article:author" content="{{ $content->user->name }}">
<meta property="article:published_time" content="{{ $content->created_at }}">
<meta property="og:title" content="{{ $content->title}}">
<meta property="og:site_name" content="{{ config('settings.name') }}">
<meta property="og:url" content="{{ \Request::url() }}">
@if ($content->image)
<meta property="og:image" content="{{$content->image}}">
@else
<meta property="og:image" content="{{$content->image}}">
@endif
@if($content->type->name == "Jobs")
<script type="application/ld+json">
{
"@context" : "https://schema.org/",
"@type" : "JobPosting",
"title" : "{{ $content->title}}",
"description" : "{!! $content->einleitung !!} {!! $content->stellenbeschreibung !!} {!! $content->bewerberqualifikation !!} {!! $content->wir_als_arbeitgeber !!}",
"identifier": {
"@type": "PropertyValue",
"name": "{{$_legal_name}}",
"value": "1234567"
},
"datePosted" : "{{ $content->updated_at}} UTC+01:00",
"employmentType" : "CONTRACTOR",
"hiringOrganization" : {
"@type" : "Organization",
"name" : "{{$_legal_name}}",
"sameAs" : "{{url('/')}}",
"logo" : "{{$favicon['180']}}"
},
"jobLocation": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"streetAddress": "{{$_legal_address}}",
"addressLocality": "{{$_legal_city}}",
"addressRegion": "Bayern",
"postalCode": "{{$_legal_zip_code}} ",
"addressCountry": "DE"
}
},
"baseSalary": {
"@type": "MonetaryAmount",
"currency": "EUR",
"value": {
"@type": "QuantitativeValue",
"value": 13.00,
"unitText": "HOUR"
}
}
}
</script>
@elseif($content->type->name == "News")
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "{{ $content->title}}",
"image": [
"{{ $content->image}}"
],
"datePublished": "{{ $content->created_at}} UTC+01:00",
"dateModified": "{{ $content->updated_at}} UTC+01:00"
}
</script>
@elseif($content->type->name == "Produto")
<!-- meta tag -->
@endif
<!--Author -->
@elseif(Route::currentRouteName() == 'contents.show' and isset($author))
<!-- meta tag -->
@else
<meta property="og:site_name" content="{{config('settings.name')}}" />
<meta property="og:title" content="{{config('settings.name')}}" />
<meta property="og:description" content="{{config('settings.description')}}" />
<meta property="og:url" content="" />
<meta property="og:image" content="{{$cover}}" />
<meta property="og:image:secure_url" content="https://ivv.5ya.de/storage/uploads/site-cover-20240113011232-lg.webp" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="640" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:image" content="" />
@endif
@if($_schriftart == "Montserrat")
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
@endif