Merge pull request #147 from IshtarStar/patch-1
Wrap blog grid item image in a tag
This commit is contained in:
@ -19,6 +19,7 @@ const image = await findImage(post.image);
|
||||
<div class="relative md:h-64 bg-gray-400 dark:bg-slate-700 rounded shadow-lg mb-6">
|
||||
{
|
||||
image && (
|
||||
<a href={getPermalink(post.permalink, 'post')}>
|
||||
<Picture
|
||||
src={image}
|
||||
class="md:object-cover w-full md:w-auto md:h-full rounded shadow-lg bg-gray-400 dark:bg-slate-700"
|
||||
@ -31,6 +32,7 @@ const image = await findImage(post.image);
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
</a>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user