summaryrefslogtreecommitdiff
path: root/source/_layouts
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-03-01 22:36:17 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-03-01 22:36:17 +0000
commitf06d5f33f27fe36c30677103f4faf3c5d77f3543 (patch)
tree260e422401f8c89b9e6ea2aed91f22f7e4cf188d /source/_layouts
parentf849601778a9aacb42a37952cb6578cc2d9d910a (diff)
Give each category their own style
Diffstat (limited to 'source/_layouts')
-rw-r--r--source/_layouts/master.blade.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/_layouts/master.blade.php b/source/_layouts/master.blade.php
index 05402f8..c8398a5 100644
--- a/source/_layouts/master.blade.php
+++ b/source/_layouts/master.blade.php
@@ -1,3 +1,4 @@
+<?php use \Illuminate\Support\Str; ?>
<!doctype html>
<html lang="en">
<head>
@@ -7,11 +8,9 @@
<div id="main-sidebar-container">
<article>@yield('article')</article>
<aside>
- <ol>
- @foreach ($page->allCategories($posts) as $category)
- <li><a href="/categories/{{ \Illuminate\Support\Str::slug($category) }}">{{ $category }}</a></li>
- @endforeach
- </ol>
+ @foreach ($page->allCategories($posts) as $category)
+ <a class="rounded p-1 text-gray-200 {{Str::slug($category) }}" href="/categories/{{ Str::slug($category) }}">{{ $category }}</a>
+ @endforeach
</aside>
</div>
</body>