Add layout and data for posts
This commit is contained in:
parent
81da5bf68c
commit
65cf7c1b69
2 changed files with 13 additions and 0 deletions
9
_includes/layouts/post.tsx
Normal file
9
_includes/layouts/post.tsx
Normal 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
4
blog/posts/_data.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
layout: layouts/post.tsx
|
||||||
|
author:
|
||||||
|
name: Foster Hangdaan
|
||||||
|
email: foster@hangdaan.email
|
Loading…
Add table
Reference in a new issue