mirror of https://github.com/garritfra/garrit.xyz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
555 B
17 lines
555 B
import Layout from "./Layout"; |
|
|
|
export default function Page(props) { |
|
const { title, date } = props; |
|
return ( |
|
<Layout siteTitle={title}> |
|
<article className="page"> |
|
{ title && <div className="page__info"> |
|
<h1>{title}</h1> |
|
{date && <h3 className="page__info__date">{date}</h3>} |
|
</div> } |
|
<div className="page__body">{props.children}</div> |
|
<div className="page__footer"></div> |
|
</article> |
|
</Layout> |
|
); |
|
}
|
|
|