DEV Community

Build a markdown blog with NextJS

Telmo Goncalves on January 12, 2020

I've posted a Tweet about building my blog in less than an hour, and I'll be honest; it took me more time writing this post than actually putting t...
Collapse
 
kozakrisz profile image
Krisztian Kecskes

Thanks! This article is very helpful!

Collapse
 
telmo profile image
Telmo Goncalves

Thanks Krisztian 🎉

Collapse
 
kozakrisz profile image
Krisztian Kecskes

Do you have any idea how to implement MDX support into this logic?

Thread Thread
 
telmo profile image
Telmo Goncalves

I do not, but I can explore it.

Collapse
 
imranib profile image
Imran Irshad

That is very helpful. Thanks

Collapse
 
kerrytokyo profile image
Kerry

Thank you for writing this article!
It was helpful.

Collapse
 
telmo profile image
Telmo Goncalves

Thank you Kerry 😃

Collapse
 
en0ma profile image
Lawrence Enehizena

Hi Telmo, I think you have a typo in the code here - const content = import(../../content/${slug}.md) , it should be const content = await import(../../content/${slug}.md)

Collapse
 
telmo profile image
Telmo Goncalves

Hey Lawrence, you're right. Thanks for the heads up, will change it 👍

Collapse
 
mohansingh profile image
Mohansingh Omprakash

So i have a doubt , Suppose if i have a count of 500 posts in my website ,should i need to create 500 markdown files for that?
Please help in an efficient approach

Collapse
 
josiasaurel profile image
Josias Aurel

Awesome tutorial. This very helpful

Collapse
 
victeoteokw profile image
Victor Teo

Thanks this is very helpful!