fix link
This commit is contained in:
parent
b4208c1fcd
commit
5e75820c9d
3 changed files with 3 additions and 9 deletions
|
@ -41,7 +41,7 @@ const next = blog[index + 1]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</article>
|
</article>
|
||||||
{standalone ? "" : <span class={styles.more}>Read More</span>}
|
{standalone ? "" : <a href=`/blog/${postEntry.slug}` class={styles.more}>Read More</span>}
|
||||||
{
|
{
|
||||||
standalone ? (
|
standalone ? (
|
||||||
<section class={styles.links}>
|
<section class={styles.links}>
|
||||||
|
|
|
@ -72,14 +72,7 @@ const { filteredPosts, categoryProperties } = Astro.props
|
||||||
</article>
|
</article>
|
||||||
{
|
{
|
||||||
filteredPosts.map((post: Post) => (
|
filteredPosts.map((post: Post) => (
|
||||||
<a
|
<BlogPost post={post} standalone={false} />
|
||||||
class={styles.link}
|
|
||||||
href={`/blog/${post.slug}`}
|
|
||||||
data-title={post.data.title}
|
|
||||||
data-category={post.data.category}
|
|
||||||
>
|
|
||||||
<BlogPost post={post} standalone={false} />
|
|
||||||
</a>
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.more {
|
.more {
|
||||||
|
color: white;
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
border: 2px solid var(--primary);
|
border: 2px solid var(--primary);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue