2023-08-26 21:26:19 -04:00
|
|
|
interface Props {
|
|
|
|
post: any;
|
|
|
|
}
|
|
|
|
|
2024-03-05 18:38:42 -05:00
|
|
|
export default function (props: Props) {
|
2023-08-26 21:26:19 -04:00
|
|
|
return (
|
|
|
|
<li className="post-list-item">
|
2024-03-05 18:38:42 -05:00
|
|
|
<a href={props.post.data.url} className="post-list-title">
|
|
|
|
{props.post.data.title}
|
|
|
|
</a>
|
|
|
|
<time className="post-list-date">
|
|
|
|
{Intl.DateTimeFormat("en-CA", { dateStyle: "long" }).format(
|
|
|
|
props.post.data.date,
|
|
|
|
)}
|
|
|
|
</time>
|
2023-08-26 21:26:19 -04:00
|
|
|
<ul className="tag-list">
|
2024-03-05 18:38:42 -05:00
|
|
|
{props.post.data.tags.map((tag, index) => (
|
|
|
|
<li key={index} className="tag">{tag}</li>
|
|
|
|
))}
|
2023-08-26 21:26:19 -04:00
|
|
|
</ul>
|
|
|
|
<p className="post-list-description">{props.post.data.description}</p>
|
|
|
|
</li>
|
|
|
|
);
|
|
|
|
}
|