diff options
Diffstat (limited to 'source/_partials')
| -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> |
