2019-05-27 20:20:33 +02:00
|
|
|
import Link from 'next/link'
|
|
|
|
|
2019-05-31 02:34:05 +02:00
|
|
|
const Page = () => (
|
2019-05-27 20:20:33 +02:00
|
|
|
<div>
|
|
|
|
<h3>My blog</h3>
|
|
|
|
<Link href='/$post' as='/post-1'>
|
|
|
|
<a id='view-post-1'>View post 1</a>
|
|
|
|
</Link>
|
|
|
|
<br />
|
|
|
|
<Link href='/$post/comments' as='/post-1/comments'>
|
|
|
|
<a id='view-post-1-comments'>View post 1 comments</a>
|
|
|
|
</Link>
|
|
|
|
<br />
|
|
|
|
<Link href='/$post/$comment' as='/post-1/comment-1'>
|
|
|
|
<a id='view-post-1-comment-1'>View comment 1 on post 1</a>
|
|
|
|
</Link>
|
2019-05-30 23:05:06 +02:00
|
|
|
{/* <br />
|
|
|
|
<Link href='/blog/$post/comment/$id$' as='/blog/543/comment'>
|
2019-05-27 20:20:33 +02:00
|
|
|
<a id='view-blog-post-1-comments'>View all comments on blog post 543</a>
|
2019-05-30 23:05:06 +02:00
|
|
|
</Link> */}
|
2019-05-27 20:20:33 +02:00
|
|
|
<br />
|
2019-05-29 23:29:02 +02:00
|
|
|
<Link href='/blog/$post/comment/$id' as='/blog/321/comment/123'>
|
2019-05-27 20:20:33 +02:00
|
|
|
<a id='view-nested-dynamic-cmnt'>View comment 123 on blog post 321</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)
|
2019-05-31 02:34:05 +02:00
|
|
|
|
|
|
|
export default Page
|