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