This commit is contained in:
Henry Hiles 2023-07-05 10:36:53 -04:00
parent b4208c1fcd
commit 5e75820c9d
3 changed files with 3 additions and 9 deletions

View file

@ -41,7 +41,7 @@ const next = blog[index + 1]
)
}
</article>
{standalone ? "" : <span class={styles.more}>Read More</span>}
{standalone ? "" : <a href=`/blog/${postEntry.slug}` class={styles.more}>Read More</span>}
{
standalone ? (
<section class={styles.links}>

View file

@ -72,14 +72,7 @@ const { filteredPosts, categoryProperties } = Astro.props
</article>
{
filteredPosts.map((post: Post) => (
<a
class={styles.link}
href={`/blog/${post.slug}`}
data-title={post.data.title}
data-category={post.data.category}
>
<BlogPost post={post} standalone={false} />
</a>
<BlogPost post={post} standalone={false} />
))
}
</div>

View file

@ -10,6 +10,7 @@
}
.more {
color: white;
margin-top: 1.5rem;
padding: 1rem;
border: 2px solid var(--primary);