Add layout and data for posts

This commit is contained in:
Foster Hangdaan 2023-08-05 17:32:29 -04:00
parent 81da5bf68c
commit 65cf7c1b69
Signed by: foster
GPG key ID: E48D7F49A852F112
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,9 @@
export const layout = "./base.tsx";
export default function({ children }) {
return (
<article>
{ children }
</article>
);
}

4
blog/posts/_data.yaml Normal file
View file

@ -0,0 +1,4 @@
layout: layouts/post.tsx
author:
name: Foster Hangdaan
email: foster@hangdaan.email