File tree Expand file tree Collapse file tree 3 files changed +32
-23
lines changed Expand file tree Collapse file tree 3 files changed +32
-23
lines changed Original file line number Diff line number Diff line change 93
93
<div class =" lg:col-span-5" >
94
94
<header class =" space-y-4" >
95
95
<div class =" sm:flex sm:items-center sm:flex-row sm:justify-between" >
96
- @if ($article -> tags -> isNotEmpty () )
97
- <div class =" flex items-center space-x-2" >
98
- @foreach ($article -> tags as $tag )
99
- <x-tag :tag =" $tag" />
100
- @endforeach
101
- </div >
102
- @endif
96
+ <div class =" flex items-center space-x-3" >
97
+ @if ($article -> tags -> isNotEmpty () )
98
+ <div class =" flex items-center space-x-2" >
99
+ @foreach ($article -> tags as $tag )
100
+ <x-tag :tag =" $tag" />
101
+ @endforeach
102
+ </div >
103
+ @endif
104
+ <x-articles .sponsored :isSponsored =" $article->isSponsored()" />
105
+ </div >
103
106
104
107
<div class =" mt-2 flex space-x-1 text-sm text-skin-base sm:mt-0" >
105
108
<time datetime =" {{ $article -> createdAt ()-> format (' Y-m-d' ) } }" >{{ $article -> createdAt ()-> format (' j M, Y' ) } } </time >
Original file line number Diff line number Diff line change 6
6
<img class =" object-cover shadow-lg rounded-lg group-hover:opacity-75" src =" {{ $article -> getFirstMediaUrl (' media' ) } }" alt =" {{ $article -> title } }" />
7
7
</div >
8
8
</a >
9
- <div >
9
+ <div class = " space-y-4 " >
10
10
<div >
11
11
<time datetime =" {{ $article -> created_at -> format (' Y-m-d' ) } }" class =" font-sans text-sm leading-5 text-skin-base capitalize" >
12
12
{{ $article -> created_at -> isoFormat (' LL' ) } }
19
19
{!! $article -> excerpt (150 ) ! !}
20
20
</p >
21
21
</div >
22
- @if ($article -> tags -> isNotEmpty () )
23
- <div class =" mt-4 flex items-center space-x-2" >
24
- @foreach ($article -> tags as $tag )
25
- <x-tag :tag =" $tag" />
26
- @endforeach
27
- </div >
28
- @endif
22
+ <div class =" flex items-center space-x-3" >
23
+ @if ($article -> tags -> isNotEmpty () )
24
+ <div class =" flex items-center space-x-2" >
25
+ @foreach ($article -> tags as $tag )
26
+ <x-tag :tag =" $tag" />
27
+ @endforeach
28
+ </div >
29
+ @endif
30
+ <x-articles .sponsored :isSponsored =" $article->isSponsored()" />
31
+ </div >
29
32
</div >
30
33
</div >
Original file line number Diff line number Diff line change 6
6
<img class =" object-cover shadow-lg rounded-lg group-hover:opacity-75" src =" {{ $article -> getFirstMediaUrl (' media' ) } }" alt =" {{ $article -> title } }" />
7
7
</div >
8
8
</a >
9
- <div class =" sm:col-span-2" >
9
+ <div class =" sm:col-span-2 space-y-2 " >
10
10
<div >
11
11
<time datetime =" {{ $article -> created_at -> format (' Y-m-d' ) } }" class =" font-sans text-sm leading-5 text-skin-base capitalize" >
12
12
{{ $article -> created_at -> isoFormat (' LL' ) } }
18
18
{!! $article -> excerpt () ! !}
19
19
</p >
20
20
</div >
21
- @if ($article -> tags -> isNotEmpty () )
22
- <div class =" mt-2 flex items-center space-x-2" >
23
- @foreach ($article -> tags as $tag )
24
- <x-tag :tag =" $tag" />
25
- @endforeach
26
- </div >
27
- @endif
21
+ <div class =" flex items-center space-x-3" >
22
+ @if ($article -> tags -> isNotEmpty () )
23
+ <div class =" flex items-center space-x-2" >
24
+ @foreach ($article -> tags as $tag )
25
+ <x-tag :tag =" $tag" />
26
+ @endforeach
27
+ </div >
28
+ @endif
29
+ <x-articles .sponsored :isSponsored =" $article->isSponsored()" />
30
+ </div >
28
31
</div >
29
32
</div >
You can’t perform that action at this time.
0 commit comments