Skip to content

Commit 2b791e5

Browse files
committed
Update contentlayer demo
1 parent 16fc256 commit 2b791e5

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

examples/contentlayer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Next.js + Contentlayer + Code Hike
22

3-
See [this guide](https://codehike.org/docs/installation/contentlayer).
3+
See [this guide](https://codehike.org/docs/installation/contentlayer) or try it on [Stackblitz](https://stackblitz.com/github/code-hike/codehike/tree/main/examples/contentlayer).
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Post one
3+
---
4+
5+
This is the first post.
6+
7+
```python hello.py
8+
# mark[16:24]
9+
print("This is Code Hike")
10+
```

examples/contentlayer/posts/post-one.mdx

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/contentlayer/posts/post-two.mdx

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Post two
3+
---
4+
5+
This is the second post.
6+
7+
```js foo.js
8+
const x = 2
9+
```

0 commit comments

Comments
 (0)