Add home page and main layout
This commit is contained in:
parent
ed7eb15e04
commit
c3a1581713
2 changed files with 24 additions and 0 deletions
13
_includes/layouts/main.tsx
Normal file
13
_includes/layouts/main.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
export default function({ title, children }) {
|
||||
return (
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>{ title }</title>
|
||||
</head>
|
||||
<body>
|
||||
{ children }
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
11
index.tsx
Normal file
11
index.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
export const title = "My website";
|
||||
export const layout = "layouts/main.tsx";
|
||||
|
||||
export default function() {
|
||||
return (
|
||||
<>
|
||||
<h1>Foster Hangdaan</h1>
|
||||
<p>Welcome!</p>
|
||||
</>
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue