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 && (
|
{post.coverImage && (
|
||||||
<img
|
<img
|
||||||
src={post.coverImage}
|
src={post.coverImage}
|
||||||
alt={post.title}
|
alt="Cover image"
|
||||||
className="w-full h-64 object-cover rounded-xl my-6"
|
className="w-full h-64 object-cover rounded-xl my-6"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export function PostCard({ slug, title, date, excerpt, tags = [], author, readin
|
|||||||
<div className="mb-4 overflow-hidden rounded-lg">
|
<div className="mb-4 overflow-hidden rounded-lg">
|
||||||
<img
|
<img
|
||||||
src={coverImage}
|
src={coverImage}
|
||||||
alt={title}
|
alt="Cover image"
|
||||||
className="w-full h-40 object-cover"
|
className="w-full h-40 object-cover"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user