summaryrefslogtreecommitdiff
path: root/source/_partials/postStub.blade.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-03-07 22:33:31 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-03-07 22:33:31 +0000
commit8a59a4d61f20c7a7c03362d3f3a44e0197fd2827 (patch)
treeb24e9a317adddab2668795d036edd1b6d882e1a3 /source/_partials/postStub.blade.php
parent9d7bf4de4d22933cabe28aef6a3cf0d7414f6be2 (diff)
Style post snippets
Diffstat (limited to 'source/_partials/postStub.blade.php')
-rw-r--r--source/_partials/postStub.blade.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/_partials/postStub.blade.php b/source/_partials/postStub.blade.php
index cee9334..05fd557 100644
--- a/source/_partials/postStub.blade.php
+++ b/source/_partials/postStub.blade.php
@@ -1,16 +1,16 @@
<?php use \Illuminate\Support\Str; ?>
-<li>
+<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>{{$post->title }}</h4>
- <p>{{ $post->description }}</p>
+ <h4 class="text-green-300 text-3xl font-bold">{{$post->title }}</h4>
+ <p class="text-2xl text-gray-300">{{ $post->description }}</p>
</a>
- <div>
- <time datetime="{{ $post->getDate()->format('Y-m-d') }}">
+ <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>
- @foreach ($post->categories as $category)
- <a href="/categories/{{ Str::slug($category) }}">{{ $category }}</a>
+ <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>