Skip to content

Commit

Permalink
Add extra post information
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 13, 2022
1 parent 46fad51 commit d9c7e4a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion _pages/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,12 @@ public function link(string $path): string {
<tr>
<th>Title</th>
<th>Source File</th>
<th>Author</th>
<th>Date</th>
</tr>
</thead>
<tbody>
@foreach (MarkdownPost::all() as $post)
@foreach (MarkdownPost::getLatestPosts() as $post)
<tr>
<td>
<a href="posts/{{ Hyde::pageLink($post->slug . '.html') }}">
Expand All @@ -239,6 +241,12 @@ public function link(string $path): string {
<td>
{!! $github->link(MarkdownPost::$sourceDirectory .'/'. $post->slug . MarkdownPost::$fileExtension) !!}
</td>
<td>
{{ $post->author->getName() }}
</td>
<td>
{{ $post->date->short }}
</td>
</tr>
@endforeach
</tbody>
Expand Down

0 comments on commit d9c7e4a

Please sign in to comment.