fix: replace post title in cover image alt text with generic description

This commit is contained in:
2026-06-01 23:34:00 -05:00
parent 9767ff950b
commit 17eac2c406
2 changed files with 2 additions and 2 deletions

View File

@@ -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"
/> />

View File

@@ -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"
/> />