# Introduction to MDX

> Generating a site with MDX and Nextjs!

Daniel Fernández · Nov 05, 2020 · https://dfrico.com/blog/2020-11-05-mdx-intro

```

The list of objects (`{link, module}`) that this function returns is what I'm using to render the post list you see in `/blog`. That page component is just rendering each "post" object into a `Preview` component to render the cards.

```javascript
postList.map((post) => <Preview key={post.link} post={post} />);
```

## Other stuff I'm using

I use [highlight.js](https://github.com/highlightjs/highlight.js) to add syntax highlight to code blocks, several image optimization plugins such as [next-optimized-images](https://github.com/cyrilwanner/next-optimized-images) or [remark-images](https://github.com/remarkjs/remark-images).

## Repository

The code for this website is open source and you can [find it here](https://github.com/dfrico/dfr-web).

[![dfr-web](https://github-readme-stats.vercel.app/api/pin/?username=blayhem&repo=dfr-web&bg_color=020204&title_color=FFC700&text_color=f9fafb)](https://github.com/dfrico/dfr-web)

I hope this article can help you set up your blog using Next and MDX! Apart from checking the code, you can contact me [on twitter](https://twitter.com/blayhem) if you have any doubts.

See you on the next article, and many thanks for reading!
