alpakas-theme/content/includes/meta.blade.php

61 lines
4.0 KiB
PHP
Raw Normal View History

2021-08-26 10:02:33 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="manifest" href="/manifest.json">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=rMBWbbb2wK">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=rMBWbbb2wK">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=rMBWbbb2wK">
<link rel="manifest" href="/site.webmanifest?v=rMBWbbb2wK">
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=rMBWbbb2wK" color="#5bbad5">
<link rel="shortcut icon" href="/favicon.ico?v=rMBWbbb2wK">
<meta name="msapplication-TileColor" content="#f49c35">
<meta name="theme-color" content="#ffffff">
2021-11-30 18:29:25 +00:00
@if (Route::currentRouteName() == 'content' and !isset($list) and isset($content))
<title>{{$content->title}}</title>
2021-08-26 10:02:33 +00:00
<meta property="og:type" content="article">
2021-11-29 18:33:43 +00:00
<meta property="article:author" content="{{ $content->user->name }}">
<meta property="article:published_time" content="{{ $content->created_at }}">
<meta property="og:title" content="Stellenangebot: {{ $content->title}}">
2021-08-26 10:02:33 +00:00
<meta property="og:site_name" content="{{ config('settings.name') }}">
<meta property="og:url" content="{{ \Request::url() }}">
2021-11-29 18:33:43 +00:00
@if ($content->image)
<meta property="og:image" content="{{ asset('uploads/' . $content->image) }}">
2021-08-26 10:02:33 +00:00
@else
2021-11-29 18:33:43 +00:00
<meta property="og:image" content="{{ $content->user->gravatar() }}">
2021-08-26 10:02:33 +00:00
@endif
2021-11-30 18:29:25 +00:00
@elseif (Route::currentRouteName() == 'content' and isset($list) and isset($content))
2021-12-27 14:05:22 +00:00
<title>Neuigkeiten vom Konradenhof</title>
2021-11-29 18:33:43 +00:00
<!-- Para colocar title do SEO exemplo: $list->seo_title -->
2021-12-27 14:05:22 +00:00
<meta name="description" content="Neuigkeiten vom Konradenhof in Gaisheim">
<meta property="og:description" content="Neuigkeiten vom Konradenhof in Gaisheim">
2021-08-26 10:02:33 +00:00
<meta property="og:type" content="website">
2021-12-27 14:05:22 +00:00
<meta property="og:title" content="Neuigkeiten vom Konradenhof in Gaisheim">
2021-08-26 10:02:33 +00:00
<meta property="og:site_name" content="{{ config('settings.name') }}">
<meta property="og:url" content="{{ \Request::url() }}">
2021-11-29 18:33:43 +00:00
@if ($list->image)
<meta property="og:image" content="{{ asset('uploads/lists/' . $list->image) }}">
2021-08-26 10:02:33 +00:00
@else
<meta property="og:image" content="{{ asset('uploads/' . config('settings.image')) }}">
@endif
2021-11-30 16:18:06 +00:00
@elseif (Route::currentRouteName() == 'author.get' and isset($author))
2021-08-26 10:02:33 +00:00
<title>Offene Jobangebote bei {{ $author->name }}</title>
<meta name="description" content="Finden Sie hier Ihren Job bei {{ $author->name }} und bewerben Sie sich direkt online">
<meta property="og:description" content="Finden Sie hier Ihren Job bei {{ $author->name }} und bewerben Sie sich direkt online">
<meta property="og:type" content="website">
<meta property="og:title" content="Offene Jobangebote bei {{ $author->name }}">
<meta property="og:site_name" content="{{ config('settings.name') }}">
<meta property="og:url" content="{{ \Request::url() }}">
@else
<title>@yield('meta_title', '')</title>
<meta name="description" content="@yield('meta_description', \Str::limit(strip_tags(config('settings.description')), 285, ' ...'))">
<meta property="og:description" content="@yield('meta_og_description', \Str::limit(strip_tags(config('settings.description')), 285, ' ...'))">
<meta property="og:type" content="website">
<meta property="og:title" content="@yield('meta_og_title', config('settings.name'))">
<meta property="og:site_name" content="@yield('meta_og_site_name', config('settings.name'))">
<meta property="og:url" content="{{ \Request::url() }}">
<meta property="og:image" content="@yield('meta_og_image', asset('uploads/' . config('settings.image')))">
@endif
@if (!empty(config('settings.favicon_image')))
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('uploads/' . config('settings.favicon_image')) }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('uploads/' . config('settings.favicon_image')) }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/' . config('settings.favicon_image')) }}">
@endif