Skip to content

Commit

Permalink
Merge pull request #55 from Laravel-Backpack/load-metas-view-when-it-…
Browse files Browse the repository at this point in the history
…exists

Load metas view when it exists
  • Loading branch information
pxpm authored Jul 15, 2024
2 parents 694f499 + 934e70d commit c6f2bef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/inc/head.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
@if (backpack_theme_config('meta_robots_content'))
<meta name="robots" content="{{ backpack_theme_config('meta_robots_content', 'noindex, nofollow') }}"> @endif
<meta name="robots" content="{{ backpack_theme_config('meta_robots_content', 'noindex, nofollow') }}">
@endif

@includeWhen(view()->exists('vendor.backpack.ui.inc.header_metas'), 'vendor.backpack.ui.inc.header_metas')

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

0 comments on commit c6f2bef

Please sign in to comment.