Skip to content

Commit

Permalink
Check only if count is 0,4, or 8 in entries browseAll variation [WEB-…
Browse files Browse the repository at this point in the history
  • Loading branch information
web-dev-trev committed Aug 20, 2024
1 parent 06d7d26 commit a911a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/site/digitalPublicationDetail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
@component('components.molecules._m-title-bar', [
'variation' => 'm-title-bar--compact m-title-bar--light',
])
@slot('links', ((count($topLevelArticle->children) > 4 && count($topLevelArticle->children) < 8) || (count($topLevelArticle->children) > 8)) ? $topLevelArticle->present()->getBrowseMoreLink($showAll) : [])
@slot('links', (!in_array(count($topLevelArticle->children), [0, 4, 8])) ? $topLevelArticle->present()->getBrowseMoreLink($showAll) : [])
{!! $topLevelArticle->title !!}
@endcomponent
@endif
Expand Down

0 comments on commit a911a35

Please sign in to comment.