Skip to content

Commit fd508b4

Browse files
committed
Use stack instead of slots
1 parent ff77869 commit fd508b4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/core/resources/views/components/blocks.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div {{ $attributes }}>
2-
{{ $before ?? '' }}
2+
@stack('before')
33
@if ($blocks)
44
@foreach ($blocks as $block)
55
@php($className = \Backstage\Facades\Backstage::resolveComponent($block['type']))
@@ -10,5 +10,5 @@
1010
@endif
1111
@endforeach
1212
@endif
13-
{{ $after ?? '' }}
13+
@stack('after')
1414
</div>

packages/core/resources/views/components/page.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<title>{!! trim($pageTitle ?? $content->pageTitle) !!}</title>
77

8-
{{ $headFirst ?? '' }}
8+
@stack('headFirst')
99

1010
<meta charset="utf-8">
1111
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
@@ -63,13 +63,13 @@
6363
<meta name="twitter:url" content="{{ $content->meta_tags['og_url'] ?? $content->url }}">
6464
@endif
6565

66-
{{ $headLast ?? '' }}
66+
@stack('headLast')
6767
</head>
6868

69-
<body>
70-
{{ $bodyFirst ?? '' }}
69+
<body {{ $attributes }}>
70+
@stack('bodyFirst')
7171
{{ $slot }}
72-
{{ $bodyLast ?? '' }}
72+
@stack('bodyLast')
7373
</body>
7474

7575
</html>

0 commit comments

Comments
 (0)