File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
examples/mdx-bundler/pages Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export async function getStaticProps() {
8
8
export default function Page ( { postNames } ) {
9
9
return (
10
10
< div style = { { width : 800 , margin : "0 auto" , fontFamily : "sans-serif" } } >
11
- < h1 > Blog</ h1 >
11
+ < h1 > My Blog</ h1 >
12
12
< ul >
13
13
{ postNames . map ( ( postName ) => (
14
14
< li key = { postName } >
Original file line number Diff line number Diff line change 1
1
import { getMDXComponent } from "mdx-bundler/client"
2
2
import { getPostNames , getPostSource } from "../../src/posts"
3
+ import Link from "next/link"
3
4
4
5
export function getStaticPaths ( ) {
5
6
const paths = getPostNames ( ) . map ( ( postName ) => ( { params : { postName } } ) )
@@ -17,7 +18,12 @@ export default function Page({ source }) {
17
18
const Content = getMDXComponent ( source )
18
19
return (
19
20
< div style = { { width : 800 , margin : "0 auto" , fontFamily : "sans-serif" } } >
20
- < Content />
21
+ < nav >
22
+ < Link href = "/" > 👈 Go back home</ Link >
23
+ </ nav >
24
+ < main >
25
+ < Content />
26
+ </ main >
21
27
</ div >
22
28
)
23
29
}
You can’t perform that action at this time.
0 commit comments