Merge branch 'trunk'
This commit is contained in:
commit
5cb4ddf28c
2 changed files with 20 additions and 0 deletions
BIN
resources/assets/images/opengraph-website.png
Normal file
BIN
resources/assets/images/opengraph-website.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
|
|
@ -7,6 +7,26 @@
|
|||
<meta name="description" content="@yield('description')">
|
||||
@endif
|
||||
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:title" content="@yield('title') - {{ config('app.name') }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ config('app.url') }}/{{ \Request::path() }}" />
|
||||
<meta property="og:site_name" content="{{ config('app.name') }}" />
|
||||
<meta property="og:image" content="
|
||||
@if (isset($product->sticker_sm) and Route::is('products.*'))
|
||||
{{ asset($product->sticker_sm) }}
|
||||
@elseif (isset($news->picture) and Route::is('news.*'))
|
||||
{{ asset($news->picture) }}
|
||||
@elseif (isset($adviceModel->picture) and Route::is('tips.*'))
|
||||
{{ asset($adviceModel->picture) }}
|
||||
@elseif (isset($recipe->picture) and Route::is('recipes.*'))
|
||||
{{ asset($recipe->picture) }}
|
||||
@else
|
||||
{{ asset('build/assets/images/opengraph-website.png') }}
|
||||
@endif
|
||||
" />
|
||||
<meta property="og:description" content="@yield('description')" />
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue