Show at most 4 categories, the rest behind a '+N' tag
- New partial/tag_list: first 4 categories, then a '+N' tag that opens the remaining ones (hover/keyboard on desktop, tap on touch screens; short close delay so the mouse can reach the list) - Used on the homepage, the article page and the news overview / tag pages (the latter now use the same pills instead of text links) - Article page: tag row grows when the tags wrap (was a fixed height) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f7b1dbac8f
commit
df8c8a9c4f
10 files changed
+325
-32
No files matched your search
@@ -47,15 +47,15 @@
|
||||
<img src='{{$item->images && count($item->images) ? $imgBase . $item->images[0]->url : '/images/noimage.svg'}}'
|
||||
alt='img'>
|
||||
</a>
|
||||
@if($item->tags)
|
||||
<ul class="post_tags">
|
||||
@include('partial/tag_list', ['tags' => $item->tags])
|
||||
</ul>
|
||||
@endif
|
||||
<h2 class="post_title"><a href="{{url($item->url)}}"
|
||||
title="{{strip_tags($item->title)}}">{!!$item->title!!}</a>
|
||||
</h2>
|
||||
<ul class="post_details clearfix">
|
||||
@foreach($item->tags as $tag)
|
||||
<li class="detail category"><i class="fa-solid fa-location-dot"></i> <a
|
||||
href="{{route('nieuws.tag', $tag->slug)}}"
|
||||
title="{{$tag->titel}}">{{$tag->titel}}</a></li>
|
||||
@endforeach
|
||||
@if($item->edited && ($item->edited != $item->published))
|
||||
<li class="date edited">
|
||||
<i class="fa-regular fa-clock"></i>
|
||||
|
||||
Reference in new issue
Block a user