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/_layouts/master.blade.php | |
| parent | a95a53491467758c1fc0ebb3840b0e51a79b42f8 (diff) | |
Allow category name to be independant of slug
Diffstat (limited to 'source/_layouts/master.blade.php')
| -rw-r--r-- | source/_layouts/master.blade.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/_layouts/master.blade.php b/source/_layouts/master.blade.php index 429c4a7..05402f8 100644 --- a/source/_layouts/master.blade.php +++ b/source/_layouts/master.blade.php @@ -9,7 +9,7 @@ <aside> <ol> @foreach ($page->allCategories($posts) as $category) - <li><a href="/categories/{{ $category }}">{{ $category }}</a></li> + <li><a href="/categories/{{ \Illuminate\Support\Str::slug($category) }}">{{ $category }}</a></li> @endforeach </ol> </aside> |
