File tree Expand file tree Collapse file tree 6 files changed +15
-18
lines changed Expand file tree Collapse file tree 6 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 105
105
</div >
106
106
107
107
<div class =" mt-2 flex space-x-1 text-sm text-skin-base sm:mt-0" >
108
- <time datetime =" {{ $article -> publishedAt ()-> format (' Y-m-d' ) } }" >{{ $article -> publishedAt ()-> format ( ' j M, Y ' ) } } </time >
108
+ <time class = " capitalize " datetime =" {{ $article -> publishedAt ()-> format (' Y-m-d' ) } }" >{{ $article -> publishedAt ()-> isoFormat ( ' LL ' ) } } </time >
109
109
<span aria-hidden =" true" >· ; </span >
110
110
<span >{{ $article -> readTime () } } min de lecture</span >
111
111
<span aria-hidden =" true" >· ; </span >
132
132
<div class =" mt-6 aspect-w-4 aspect-h-2 sm:mt-8 mx-auto" >
133
133
<img class =" object-cover shadow-lg rounded-lg group-hover:opacity-75" src =" {{ $article -> getFirstMediaUrl (' media' ) } }" alt =" {{ $article -> title } }" />
134
134
</div >
135
- <div
136
- class =" mt-8 prose prose-lg prose-green text-skin-base mx-auto overflow-x-hidden md:prose-xl lg:max-w-none"
137
- >
138
- <x-markdown-content :content =" $article->body" />
139
- </div >
135
+
136
+ <x-markdown-content id =" content" class =" mt-8 prose prose-lg prose-green text-skin-base mx-auto overflow-x-hidden md:prose-xl lg:max-w-none" :content =" $article->body" />
140
137
141
138
<div class =" mt-6 pt-5 border-t border-skin-base sm:hidden" >
142
139
<div class =" space-y-4" >
@@ -267,6 +264,8 @@ class="inline-flex items-center py-2 px-4 border border-skin-base rounded-md sha
267
264
</div >
268
265
<div class =" hidden relative lg:block lg:col-span-2" >
269
266
<x-sticky-content class =" space-y-10" >
267
+ <x-sponsors />
268
+
270
269
@if ($article -> showToc () )
271
270
<div class =" bg-skin-card px-4 py-6 rounded-lg shadow-lg" >
272
271
<h4 class =" text-sm text-skin-inverted font-semibold leading-tight tracking-widest uppercase" >Table des matières</h4 >
Original file line number Diff line number Diff line change 11
11
<a href =" {{ route (' profile' , $article -> author -> username ) } }" class =" hover:underline" >{{ $article -> author -> name } } </a >
12
12
</p >
13
13
<p class =" text-sm text-skin-base" >
14
- <a href =" #" class =" hover:underline" >
15
- <time datetime =" {{ $article -> publishedAt ()-> format (' Y-m-d' ) } }" >{{ $article -> publishedAt ()-> format (' j M, Y' ) } } </time >
16
- </a >
14
+ <time class =" capitalize" datetime =" {{ $article -> publishedAt ()-> format (' Y-m-d' ) } }" >{{ $article -> publishedAt ()-> isoFormat (' LL' ) } } </time >
17
15
</p >
18
16
</div >
19
17
</div >
41
39
<div class =" inline-flex space-x-2 text-skin-muted" >
42
40
<x-heroicon-o-eye class =" h-5 w-5" />
43
41
<span class =" font-medium text-skin-inverted" >{{ $article -> views_count } } </span >
44
- <span class =" sr-only" >views </span >
42
+ <span class =" sr-only" >vues </span >
45
43
</div >
46
44
</span >
47
45
</div >
Original file line number Diff line number Diff line change 8
8
</a >
9
9
<div class =" space-y-4" >
10
10
<div >
11
- <time datetime =" {{ $article -> created_at -> format (' Y-m-d' ) } }" class =" font-sans text-sm leading-5 text-skin-base capitalize" >
12
- {{ $article -> created_at -> isoFormat (' LL' ) } }
11
+ <time datetime =" {{ $article -> publishedAt () -> format (' Y-m-d' ) } }" class =" font-sans text-sm leading-5 text-skin-base capitalize" >
12
+ {{ $article -> publishedAt () -> isoFormat (' LL' ) } }
13
13
</time >
14
14
<a href =" {{ route (' articles.show' , $article ) } }" class =" mt-2 flex items-center justify-between group" >
15
15
<h4 class =" text-lg leading-6 font-semibold font-sans text-skin-inverted group-hover:text-skin-primary" >{{ $article -> title } } </h4 >
Original file line number Diff line number Diff line change 1
1
@props ([' article' ] )
2
2
3
- <div class =" space-y-4 lg:grid lg:grid-cols-3 lg:items-start lg:gap-6 lg:space-y-0" >
3
+ <article id = " article-title- {{ $article -> id } } " class =" space-y-4 lg:grid lg:grid-cols-3 lg:items-start lg:gap-6 lg:space-y-0" >
4
4
<a href =" {{ route (' articles.show' , $article ) } }" class =" group" >
5
5
<div class =" aspect-w-3 aspect-h-2" >
6
6
<img class =" object-cover shadow-lg rounded-lg group-hover:opacity-75" src =" {{ $article -> getFirstMediaUrl (' media' ) } }" alt =" {{ $article -> title } }" />
39
39
</a >
40
40
</p >
41
41
<div class =" flex space-x-1 text-sm text-skin-base/60" >
42
- <time datetime =" {{ $article -> publishedAt ()-> format (' Y-m-d' ) } }" >{{ $article -> publishedAt ()-> format ( ' j M, Y ' ) } } </time >
42
+ <time class = " capitalize " datetime =" {{ $article -> publishedAt ()-> format (' Y-m-d' ) } }" >{{ $article -> publishedAt ()-> isoFormat ( ' LL ' ) } } </time >
43
43
<span aria-hidden =" true" >· ; </span >
44
44
<span >{{ $article -> readTime () } } min de lecture</span >
45
45
</div >
46
46
</div >
47
47
</div >
48
48
</div >
49
49
</div >
50
- </div >
50
+ </article >
Original file line number Diff line number Diff line change 1
1
@props ([' content' ] )
2
2
3
3
<div {{ $attributes } } >
4
- {!! replace_links (\App \Markdown \MarkdownHelper:: parseLiquidTags (Markdown:: convertToHtml ($content ))) ! !}
4
+ {!! replace_links (\App \Markdown \MarkdownHelper:: parseLiquidTags (Markdown:: convert ($content ))) ! !}
5
5
</div >
Original file line number Diff line number Diff line change 11
11
<a href =" https://gdg.community.dev/gdg-douala" class =" flex items-center justify-end py-2" >
12
12
<x-icon .gdg class =" w-auto h-5 text-skin-inverted" />
13
13
</a >
14
- <a href =" https://twitter.com/DarkCodeCompany" class =" flex items-center justify-end" >
14
+ {{-- <a href="https://twitter.com/DarkCodeCompany" class="flex items-center justify-end">
15
15
<x-icon.darkcode class="h-4 text-skin-inverted"/>
16
- </a >
16
+ </a>--}}
17
17
</div >
18
18
</div >
You can’t perform that action at this time.
0 commit comments