Skip to content

Commit

Permalink
feat:post image redirects to the blog post (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanBalota authored Jan 24, 2024
1 parent 0f7b95d commit 69d39d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const { post } = Astro.props;
---

<article class="relative isolate flex flex-col gap-8 lg:flex-row">
<a href={`/blog/${post.slug}`}>

<div
class="relative aspect-[16/9] sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0"
>
Expand All @@ -21,6 +23,7 @@ const { post } = Astro.props;
>
</div>
</div>
</a>
<div>
<div class="text-xs">
<time
Expand Down Expand Up @@ -66,4 +69,4 @@ const { post } = Astro.props;
</div>
</div>
</div>
</article>
</article>

0 comments on commit 69d39d2

Please sign in to comment.