summaryrefslogtreecommitdiff
path: root/source/_partials/postStub.blade.php
blob: 5f1af95460d0e8d80cbc2e4a46dfac8e8e653056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<li class="lg:flex lg:flex-row lg:justify-between">
    <a title="Go to post" href="{{ $post->getUrl() }}">
        <h4>{{$post->title }}</h4>
        <p>{{ $post->description }}</p>
    </a>
    <div class="text-right flex flex-row lg:flex-col">
        <time class="order-2 lg:order-1 ml-2" datetime="{{ $post->getDate()->format('Y-m-d') }}">
            {{ $post->getDate()->format('M d, Y') }}
        </time> 
        <div class="order-1 lg:order-2">
            @foreach ($post->categories as $category)
                <a href="/categories/{{ $category }}">{{ $category }}</a>
            @endforeach
        </div>
    </div>
</li>