add title and description in home page
parent
72850960fc
commit
25b4d13868
|
@ -9,8 +9,7 @@
|
||||||
<link rel="shortcut icon" href="/favicon.ico?v=rMBWbbb2wK">
|
<link rel="shortcut icon" href="/favicon.ico?v=rMBWbbb2wK">
|
||||||
<meta name="msapplication-TileColor" content="#f49c35">
|
<meta name="msapplication-TileColor" content="#f49c35">
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
@if (Route::currentRouteName() == 'content' and isset($content))
|
||||||
@if (\Route::currentRouteName() == 'content' and isset($content))
|
|
||||||
<title>{{ $content->title}}</title>
|
<title>{{ $content->title}}</title>
|
||||||
<meta property="og:type" content="article">
|
<meta property="og:type" content="article">
|
||||||
<meta property="article:author" content="{{ $content->user->name }}">
|
<meta property="article:author" content="{{ $content->user->name }}">
|
||||||
|
@ -23,27 +22,21 @@
|
||||||
@else
|
@else
|
||||||
<meta property="og:image" content="{{ $content->user->gravatar() }}">
|
<meta property="og:image" content="{{ $content->user->gravatar() }}">
|
||||||
@endif
|
@endif
|
||||||
@elseif (\Route::currentRouteName() == 'content' and isset($list))
|
@elseif (Route::currentRouteName() == 'content' and isset($list))
|
||||||
|
|
||||||
<title>Aktuelle Stellenangebote in {{ $list->name }}</title>
|
<title>Aktuelle Stellenangebote in {{ $list->name }}</title>
|
||||||
<!-- Para colocar title do SEO exemplo: $list->seo_title -->
|
<!-- Para colocar title do SEO exemplo: $list->seo_title -->
|
||||||
|
|
||||||
<meta name="description" content="Finden Sie hier Ihren Job in der Region {{ $list->name }} und bewerben Sie sich bei Top-Arbeigebern.">
|
<meta name="description" content="Finden Sie hier Ihren Job in der Region {{ $list->name }} und bewerben Sie sich bei Top-Arbeigebern.">
|
||||||
<meta property="og:description" content="Finden Sie hier Ihren Job in der Region {{ $list->name }} und bewerben Sie sich bei Top-Arbeigebern.">
|
<meta property="og:description" content="Finden Sie hier Ihren Job in der Region {{ $list->name }} und bewerben Sie sich bei Top-Arbeigebern.">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="Aktuelle Stellenangebote in {{ $list->name }}">
|
<meta property="og:title" content="Aktuelle Stellenangebote in {{ $list->name }}">
|
||||||
<meta property="og:site_name" content="{{ config('settings.name') }}">
|
<meta property="og:site_name" content="{{ config('settings.name') }}">
|
||||||
<meta property="og:url" content="{{ \Request::url() }}">
|
<meta property="og:url" content="{{ \Request::url() }}">
|
||||||
|
|
||||||
@if ($list->image)
|
@if ($list->image)
|
||||||
<meta property="og:image" content="{{ asset('uploads/lists/' . $list->image) }}">
|
<meta property="og:image" content="{{ asset('uploads/lists/' . $list->image) }}">
|
||||||
@else
|
@else
|
||||||
<meta property="og:image" content="{{ asset('uploads/' . config('settings.image')) }}">
|
<meta property="og:image" content="{{ asset('uploads/' . config('settings.image')) }}">
|
||||||
@endif
|
@endif
|
||||||
|
@elseif (Route::currentRouteName() == 'author.get' and isset($author))
|
||||||
|
|
||||||
@elseif (\Route::currentRouteName() == 'author.get' and isset($author))
|
|
||||||
|
|
||||||
<title>Offene Jobangebote bei {{ $author->name }}</title>
|
<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 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:description" content="Finden Sie hier Ihren Job bei {{ $author->name }} und bewerben Sie sich direkt online">
|
||||||
|
@ -51,24 +44,16 @@
|
||||||
<meta property="og:title" content="Offene Jobangebote bei {{ $author->name }}">
|
<meta property="og:title" content="Offene Jobangebote bei {{ $author->name }}">
|
||||||
<meta property="og:site_name" content="{{ config('settings.name') }}">
|
<meta property="og:site_name" content="{{ config('settings.name') }}">
|
||||||
<meta property="og:url" content="{{ \Request::url() }}">
|
<meta property="og:url" content="{{ \Request::url() }}">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@else
|
@else
|
||||||
<title>@yield('meta_title', '')</title>
|
<title>@yield('meta_title', '')</title>
|
||||||
<meta name="description" content="@yield('meta_description', \Str::limit(strip_tags(config('settings.description')), 285, ' ...'))">
|
<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:description" content="@yield('meta_og_description', \Str::limit(strip_tags(config('settings.description')), 285, ' ...'))">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="@yield('meta_og_title', config('settings.name'))">
|
<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:site_name" content="@yield('meta_og_site_name', config('settings.name'))">
|
||||||
<meta property="og:url" content="{{ \Request::url() }}">
|
<meta property="og:url" content="{{ \Request::url() }}">
|
||||||
<meta property="og:image" content="@yield('meta_og_image', asset('uploads/' . config('settings.image')))">
|
<meta property="og:image" content="@yield('meta_og_image', asset('uploads/' . config('settings.image')))">
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (!empty(config('settings.favicon_image')))
|
@if (!empty(config('settings.favicon_image')))
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('uploads/' . 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="32x32" href="{{ asset('uploads/' . config('settings.favicon_image')) }}">
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
@extends('template.'.config('settings.template').'.content.master')
|
@extends('template.'.config('settings.template').'.content.master')
|
||||||
|
@section('meta_title', 'Title HomePage')
|
||||||
|
@section('meta_description', 'Description HomePage')
|
||||||
@section('content')
|
@section('content')
|
||||||
<style>
|
<style>
|
||||||
@media only screen and (max-width: 676px) {
|
@media only screen and (max-width: 676px) {
|
||||||
#home-hero {
|
#home-hero {
|
||||||
background-color: #9699AA;
|
background-color: #9699AA;
|
||||||
background-image: url('{{ asset('template/images/alpaka-hero.jpg') }}');
|
background-image: url("{{ asset('template/images/alpaka-hero.jpg') }}");
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
min-height: 250px;
|
min-height: 250px;
|
||||||
|
@ -13,7 +15,7 @@
|
||||||
@media only screen and (min-width: 676px) {
|
@media only screen and (min-width: 676px) {
|
||||||
#home-hero {
|
#home-hero {
|
||||||
background-color: #9699AA;
|
background-color: #9699AA;
|
||||||
background-image: url('{{ asset('template/images/alpaka-hero.jpg') }}');
|
background-image: url("{{ asset('template/images/alpaka-hero.jpg') }}");
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
min-height: 500px;
|
min-height: 500px;
|
||||||
|
|
Loading…
Reference in New Issue