<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="Generator" content="Lumino CMS" />
<title>{{config('settings.name')}}</title>

<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']}}">

<!--Home -->
@if(Route::currentRouteName() == 'index')
    <!-- meta tag -->

<!--Page -->
@elseif(Route::currentRouteName() == 'page.show')
    <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="{{$cover}}" />
    <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=""/>

<!--List -->
@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 == "Vaga")
        <!-- meta tag -->
    @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="{{$cover}}" />
    <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