Skip to content

Commit 81c82d9

Browse files
committed
Fix bug in tag page: fix link
1 parent a2dd793 commit 81c82d9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

resources/views/tailwind/pages/tag_index.blade.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,14 @@
4343
</div>
4444

4545
<h2 class="text-xl font-semibold mb-2">
46-
@if(method_exists($item, 'getUrl'))
47-
<a href="{{ $item->getUrl() }}" class="hover:text-blue-600">
48-
{{ $item->title }}
49-
</a>
50-
@else
46+
<a href="{{ $item->getViewUrl() }}" class="hover:text-blue-600">
5147
{{ $item->title }}
52-
@endif
48+
</a>
5349
</h2>
5450

5551
@if(method_exists($item, 'intro') && $item->intro)
5652
<p class="text-gray-600 mb-3">
57-
{{ Str::limit(strip_tags($item->intro), 200) }}
53+
{{ Str::limit(strip_tags($item->intro), 400) }}
5854
</p>
5955
@endif
6056

0 commit comments

Comments
 (0)