fix: replace post title in cover image alt text with generic description
This commit is contained in:
@@ -57,7 +57,7 @@ export default async function PostPage({ params }: { params: Promise<{ slug: str
|
||||
{post.coverImage && (
|
||||
<img
|
||||
src={post.coverImage}
|
||||
alt={post.title}
|
||||
alt="Cover image"
|
||||
className="w-full h-64 object-cover rounded-xl my-6"
|
||||
loading="lazy"
|
||||
/>
|
||||
|
||||
@@ -18,7 +18,7 @@ export function PostCard({ slug, title, date, excerpt, tags = [], author, readin
|
||||
<div className="mb-4 overflow-hidden rounded-lg">
|
||||
<img
|
||||
src={coverImage}
|
||||
alt={title}
|
||||
alt="Cover image"
|
||||
className="w-full h-40 object-cover"
|
||||
loading="lazy"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user