|
@@ -1,65 +1,20 @@
|
|
@extends('layouts.master')
|
|
@extends('layouts.master')
|
|
|
|
|
|
@section('content')
|
|
@section('content')
|
|
- <section class="jumbotron text-center">
|
|
|
|
- <div class="container">
|
|
|
|
- <h1 class="jumbotron-heading">My blog</h1>
|
|
|
|
- <p class="lead text-muted">Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don't simply skip over it entirely.</p>
|
|
|
|
- <p>
|
|
|
|
- <a href="#" class="btn btn-primary">Main call to action</a>
|
|
|
|
- <a href="#" class="btn btn-secondary">Secondary action</a>
|
|
|
|
- </p>
|
|
|
|
- </div>
|
|
|
|
- </section>
|
|
|
|
|
|
+ <div class="col-sm-8 blog-main">
|
|
|
|
+ @foreach ($posts as $post)
|
|
|
|
+ <div class="blog-post">
|
|
|
|
+ <h2 class="blog-post-title"><a href="/posts/{{ $post->id }}">{{ $post->title }}</a></h2>
|
|
|
|
+ <p class="blog-post-meta">{{ $post->created_at }} by <a href="#">Mark</a></p>
|
|
|
|
|
|
- <div class="album text-muted">
|
|
|
|
- <div class="container">
|
|
|
|
|
|
+ {{ $post->body }}
|
|
|
|
+ </div><!-- /.blog-post -->
|
|
|
|
+ @endforeach
|
|
|
|
|
|
- <div class="row">
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <nav class="blog-pagination">
|
|
|
|
+ <a class="btn btn-outline-primary" href="#">Older</a>
|
|
|
|
+ <a class="btn btn-outline-secondary disabled" href="#">Newer</a>
|
|
|
|
+ </nav>
|
|
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
- <div class="card">
|
|
|
|
- <img data-src="holder.js/100px280/thumb" alt="Card image cap">
|
|
|
|
- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-@endsection
|
|
|
|
-
|
|
|
|
-@section('footer')
|
|
|
|
-<p>Special index footer</p>
|
|
|
|
|
|
+ </div><!-- /.blog-main -->
|
|
@endsection
|
|
@endsection
|