blob: 6eefb6add9e2ddb177c2d59dd439b0d30212d496 (
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 class="sm:flex sm:flex-row sm:justify-between hover:bg-gray-700 p-4 pb-8">
<a title="Go to post" href="{{ $post->getUrl() }}">
<h4 class="text-green-300 text-3xl font-bold">{{$post->title }}</h4>
<p class="text-2xl">{{ $post->description }}</p>
</a>
<div class="mt-8 sm:mt-0 text-right flex flex-row sm:flex-col">
<time class="inline-block p-2 order-2 sm:order-1 ml-2" datetime="{{ $post->getDate()->format('Y-m-d') }}">
{{ $post->getDate()->format('M d, Y') }}
</time>
<div class="order-1 sm:order-2">
@foreach ($post->tags as $tag)
<a class="inline-block rounded py-2 px-4 {{Str::slug($tag) }}" href="/tags/{{ Str::slug($tag) }}">{{ $tag }}</a>
@endforeach
</div>
</div>
</li>
|