diff options
Diffstat (limited to 'source/_partials/postStub.blade.php')
| -rw-r--r-- | source/_partials/postStub.blade.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/_partials/postStub.blade.php b/source/_partials/postStub.blade.php index ca9f08b..734d23f 100644 --- a/source/_partials/postStub.blade.php +++ b/source/_partials/postStub.blade.php @@ -9,7 +9,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/{{ $category }}">{{ $category }}</a></span> + <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> @endforeach </div> </div> |
