FEATURE: add base support for displaying multiple pages on one-page template
This commit is contained in:
@@ -1 +0,0 @@
|
||||
{{dd($page)}}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
<h1>{{$page->title}}</h1>
|
||||
|
||||
<div>
|
||||
{!! $page->content !!}
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
@if(isset($extra['pagesHtml']))
|
||||
@foreach($extra['pagesHtml'] as $subpage)
|
||||
{!! $subpage !!}
|
||||
@endforeach
|
||||
@endif
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<h3>{{$page->title}}</h3>
|
||||
|
||||
<div>
|
||||
{!! $page->content !!}
|
||||
</div>
|
||||
Reference in New Issue
Block a user