2024-09-06 11:05:02 -04:00
|
|
|
export default function (props: Lume.Data) {
|
2024-03-05 18:38:42 -05:00
|
|
|
const dateFormatted = Intl.DateTimeFormat("en-CA", { dateStyle: "long" })
|
|
|
|
.format(props.date);
|
2023-07-26 16:34:06 -04:00
|
|
|
return (
|
|
|
|
<header className="page-header">
|
2024-03-05 18:38:42 -05:00
|
|
|
<h1>{props.title}</h1>
|
2023-08-05 17:47:37 -04:00
|
|
|
{props.author &&
|
2024-03-05 18:38:42 -05:00
|
|
|
(
|
|
|
|
<p className="author" style={{ color: "var(--color-brown)" }}>
|
|
|
|
By {props.author.name} on{" "}
|
|
|
|
<time dateTime={props.date.toISOString()}>{dateFormatted}</time>
|
|
|
|
</p>
|
|
|
|
)}
|
|
|
|
<p className="subheading">{props.description}</p>
|
2023-08-08 18:48:38 -04:00
|
|
|
{props.comp.separator()}
|
2023-07-26 16:34:06 -04:00
|
|
|
</header>
|
2024-03-05 18:38:42 -05:00
|
|
|
);
|
2023-07-26 16:34:06 -04:00
|
|
|
}
|