Skip to content

Commit 6970cbc

Browse files
committed
Changed show count comments on post lists
1 parent fc8007c commit 6970cbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/views/post/list.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ class="position-absolute start-0 end-0 top-0 bottom-0 z-2"></a>
8282
<a class="d-flex align-items-center text-body-secondary text-decoration-none me-4"
8383
href="{{ route('post.show', $post) }}">
8484
<x-icon path="i.comment"/>
85-
<span class="ms-2">{{ $post->comments_count }}</span>
85+
@if($post->comments_count > 0)
86+
<span class="ms-2">{{ $post->comments_count }}</span>
87+
@endif
8688
</a>
8789

8890
<time

0 commit comments

Comments
 (0)