FEATURE: prepare support for blog

This commit is contained in:
Michal Kváček
2016-10-03 03:04:03 +02:00
parent 012ba1fd36
commit da1c8652e6
5 changed files with 66 additions and 17 deletions
@@ -0,0 +1,22 @@
@extendVisitor('layout')
@include(\App\Helpers\Template::name('metaInformation'))
@section('content')
<h1 class="text-center uppercase m-b-25">{{$page->title}}</h1>
<div class="row">
{!! $page->content !!}
@forelse($page->comments as $comment)
{{$comment->author}}: {{$comment->content}}
@empty
<div class="callout info">Nic tu neni.</div>
@endforelse
</div>
@endsection
@@ -0,0 +1,15 @@
@extendVisitor('layout')
@include(\App\Helpers\Template::name('metaInformation'))
@section('content')
<h1 class="text-center uppercase m-b-25">{{$page->title}}</h1>
<div class="row">
{!! $page->content !!}
</div>
@foreach($articles as $article)
<h2><a href="{{route('page.content', ['url' => $article->url])}}">{{$article->title}}</a></h2>
@endforeach
@endsection