Replies: 4 comments 5 replies
-
I think the |
Beta Was this translation helpful? Give feedback.
-
I'm also running into roadblocks with this. Front matter doesn't work with the built-in |
Beta Was this translation helpful? Give feedback.
-
I have been playing with MDX to create my blog and this was my experience: First I tried to create a The post file is like this:
This To show the list of posts, I adapted the code from the blog-starter example, it basically reads the folder that contains the posts to get the filenames (that are the posts slugs) and return the metadata of these posts: https://github.com/rafaelalmeidatk/rafaelalmeidatk.com/blob/5e990d191994ed418c356f5fb1edea7c43213e3f/src/lib/posts.ts#L33 |
Beta Was this translation helpful? Give feedback.
-
I've got this partially working using |
Beta Was this translation helpful? Give feedback.
-
Can someone help point me to a simple MDX blog that loops through posts?
I tried converting the Next.js learning blog example into MDX but it's not as simple as I thought. And the MDX blogs I'm finding online are either really bloating and complex, or are too simple and aren't looping over posts or getting static paths or anything useful. I'm just really confused on this process and what different tools I need (like does frontmatter not work?).
Even a good blog post would be greatly appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions