diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-03-01 22:36:17 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-03-01 22:36:17 +0000 |
| commit | f06d5f33f27fe36c30677103f4faf3c5d77f3543 (patch) | |
| tree | 260e422401f8c89b9e6ea2aed91f22f7e4cf188d /source/_partials/postStub.blade.php | |
| parent | f849601778a9aacb42a37952cb6578cc2d9d910a (diff) | |
Give each category their own style
Diffstat (limited to 'source/_partials/postStub.blade.php')
| -rw-r--r-- | source/_partials/postStub.blade.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/_partials/postStub.blade.php b/source/_partials/postStub.blade.php index 734d23f..84976cf 100644 --- a/source/_partials/postStub.blade.php +++ b/source/_partials/postStub.blade.php @@ -1,3 +1,4 @@ +<?php use \Illuminate\Support\Str; ?> <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> @@ -9,7 +10,7 @@ </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> + <a class="inline-block rounded py-2 px-4 text-gray-200 {{Str::slug($category) }}" href="/categories/{{ Str::slug($category) }}">{{ $category }}</a> @endforeach </div> </div> |
