diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-02-28 23:08:02 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-02-28 23:08:02 +0000 |
| commit | f849601778a9aacb42a37952cb6578cc2d9d910a (patch) | |
| tree | 4b897e30e78f1c583d2b72507d076d933e4fe08d /source/_partials/postStub.blade.php | |
| parent | a95a53491467758c1fc0ebb3840b0e51a79b42f8 (diff) | |
Allow category name to be independant of slug
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> |
