kolibri_blog/src/components/PostCard.astro
guamss 6319371ee4
All checks were successful
Déploiement Docker Vite / deploy (push) Successful in 7m41s
fix: accesibility fix
2026-09-14 18:25:48 +02:00

27 lines
462 B
Plaintext

---
import "../styles/postcard.css";
const { id, title, description, pubDate, updatedDate, illustration } =
Astro.props;
---
<article>
<img src={illustration.src} alt="" />
<h2>
<a href={`/posts/${id}`}>{title}</a>
</h2>
<time datetime={pubDate.toISOString()}>
{
pubDate.toLocaleDateString("fr-fr", {
year: "numeric",
month: "short",
day: "numeric",
})
}
</time>
<p>{description}</p>
</article>