summaryrefslogtreecommitdiff
path: root/source/_layouts/master.blade.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-02-28 23:08:02 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-02-28 23:08:02 +0000
commitf849601778a9aacb42a37952cb6578cc2d9d910a (patch)
tree4b897e30e78f1c583d2b72507d076d933e4fe08d /source/_layouts/master.blade.php
parenta95a53491467758c1fc0ebb3840b0e51a79b42f8 (diff)
Allow category name to be independant of slug
Diffstat (limited to 'source/_layouts/master.blade.php')
-rw-r--r--source/_layouts/master.blade.php2
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>