summaryrefslogtreecommitdiff
path: root/source/_partials/postStub.blade.php
blob: 734d23fe1492ab17e068aa5f9a1b69bd93609229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<li class="md:flex md:flex-row md:justify-between hover:bg-gray-800 p-4 pb-8">
    <a class="text-green-300" title="Go to post" href="{{ $post->getUrl() }}">
        <h4 class="text-3xl font-bold">{{$post->title }}</h4>
        <p class="text-2xl text-gray-300">{{ $post->description }}</p>
    </a>
    <div class="mt-8 md:mt-0 text-right flex flex-row md:flex-col">
        <time class="inline-block p-2 text-gray-200 order-2 md:order-1 ml-2" datetime="{{ $post->getDate()->format('Y-m-d') }}">
            {{ $post->getDate()->format('M d, Y') }}
        </time> 
        <div class="order-1 md:order-2">
            @foreach ($post->categories as $category)
                <span class="inline-block bg-green-800 rounded py-2 px-4"><a class="text-gray-200" href="/categories/{{ \Illuminate\Support\Str::slug($category) }}">{{ $category }}</a></span>
            @endforeach
        </div>
    </div>
</li>