FEATURE: prepare support for blog
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user