Skip to content

Commit c6f2bef

Browse files
authored
Merge pull request #55 from Laravel-Backpack/load-metas-view-when-it-exists
Load metas view when it exists
2 parents 694f499 + 934e70d commit c6f2bef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/views/inc/head.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<meta http-equiv="X-UA-Compatible" content="IE=edge">
33
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
44
@if (backpack_theme_config('meta_robots_content'))
5-
<meta name="robots" content="{{ backpack_theme_config('meta_robots_content', 'noindex, nofollow') }}"> @endif
5+
<meta name="robots" content="{{ backpack_theme_config('meta_robots_content', 'noindex, nofollow') }}">
6+
@endif
7+
8+
@includeWhen(view()->exists('vendor.backpack.ui.inc.header_metas'), 'vendor.backpack.ui.inc.header_metas')
69

710
<meta name="csrf-token" content="{{ csrf_token() }}"/> {{-- Encrypted CSRF token for Laravel, in order for Ajax requests to work --}}
811
<title>{{ isset($title) ? $title.' :: '.backpack_theme_config('project_name') : backpack_theme_config('project_name') }}</title>

0 commit comments

Comments
 (0)