diff options
Diffstat (limited to 'source/_partials/postStub.blade.php')
| -rw-r--r-- | source/_partials/postStub.blade.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/_partials/postStub.blade.php b/source/_partials/postStub.blade.php new file mode 100644 index 0000000..5f1af95 --- /dev/null +++ b/source/_partials/postStub.blade.php @@ -0,0 +1,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> |
