feat: add links from homepage to individual articles

This commit is contained in:
Jonathan Nielson 2025-03-19 17:08:56 -05:00
parent a9155b413f
commit ebcdf7e324
1 changed files with 6 additions and 4 deletions

View File

@ -11,11 +11,13 @@
@forelse($articles as $article)
<article>
<h3>
Article: {{ $article->title }}
<a href="{{ route('article', ['article_slug' => $article->slug]) }}">
{{ $article->title }}
</a>
</h3>
<p>
{!! $article->body !!}
</p>
<h4>
{{ $article->subtitle }}
</h4>
</article>
@empty
<div>No articles published yet. Check back soon!</div>