summaryrefslogtreecommitdiff
path: root/source/_partials/postStub.blade.php
blob: cee93340a7e75eef1cdf802ca1622a98c06106d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php use \Illuminate\Support\Str; ?>
<li>
    <a title="Go to post" href="{{ $post->getUrl() }}">
        <h4>{{$post->title }}</h4>
        <p>{{ $post->description }}</p>
    </a>
    <div>
        <time datetime="{{ $post->getDate()->format('Y-m-d') }}">
            {{ $post->getDate()->format('M d, Y') }}
        </time> 
        <div>
            @foreach ($post->categories as $category)
                <a href="/categories/{{ Str::slug($category) }}">{{ $category }}</a>
            @endforeach
        </div>
    </div>
</li>