Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a978ab5

Browse files
author
Je
committed
chore: add markdown-blog example
1 parent 976bdce commit a978ab5

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

examples/markdown-blog/pages/blog.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, { ComponentType } from 'https://esm.sh/react'
2+
import { Head } from 'https://deno.land/x/aleph/mod.ts'
3+
4+
export default function Blog({ Page, pageProps }: { Page: ComponentType<any>, pageProps: { title: string } }) {
5+
return (
6+
<>
7+
<Head>
8+
<title>{pageProps.title}</title>
9+
</Head>
10+
<Page />
11+
</>
12+
)
13+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Hello World
3+
author: postUI Lab.
4+
date: 2020-10-01
5+
---
6+
# Hello World
7+
Welcome to use **Aleph.js**!
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Import, Link } from 'https://deno.land/x/aleph/mod.ts'
2+
import React from 'https://esm.sh/react'
3+
4+
export default function Home() {
5+
return (
6+
<div className="wrapper">
7+
<h1>My Blog.</h1>
8+
<ul>
9+
<li><Link to="/blog/hello-world">Hello World</Link></li>
10+
</ul>
11+
</div>
12+
)
13+
}

0 commit comments

Comments
 (0)