FEATURE: add base support for displaying multiple pages on one-page template

This commit is contained in:
Michal Kváček
2016-09-24 01:53:43 +02:00
parent 7cd084e621
commit b15bbae037
13 changed files with 181 additions and 31 deletions
@@ -1 +0,0 @@
{{dd($page)}}
@@ -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
@@ -0,0 +1,5 @@
<h3>{{$page->title}}</h3>
<div>
{!! $page->content !!}
</div>