Static Blog With Next.js and Markdown

preview_player
Показать описание


Timestamps:
0:00 - Intro
7:10 - Header Component
9:08 - Create a Markdown File
11:44 - Fetch Markdown Files
14:56 - Get Slug & Frontmatter
19:50 - Displaying Posts
25:21 - Post Page & Generate Paths
34:50 - Displaying The Post
27:40 - Sort Posts By Date
39:50 - Exporting a Static Site
43:34 - Deploy to Vercel
Рекомендации по теме
Комментарии
Автор

Yesterday I got my first job as a React developer thanks to your tutorials and courses, I have been following you for about one year and half and I can't thank you enough for how much you have contributed in my learning path, thank you again sir 🙏

chrisbraun
Автор

One of the best instructor in the world🔥👍🙏

balajiravi
Автор

Just watched the next crash course and tada! here's the add on.Thank you brad for everything you have given to the web dev community.

narendrajoshi
Автор

FIX: TypeError: (0, is not a function ERROR
👇
For marked versions 4.0.0 up must import by:
import { marked } from 'marked'

josephmxm
Автор

bells and whistles x'D, i learn codding and English with brad

mootimadness
Автор

Instead of typing dangerouslySetInnerHTML to display the post's content, just install react-markdown and type this:

Also, path.join() is not necessary in "const files =
Just do this instead to make it simpler to understand: const files = fs.readdirSync('posts')

austin
Автор

Thanks, Brad, all worked perfectly even 2 years later, only the import marked already we have to include marked inside curly brackets {marked}, otherwise we get an error

edgarsblog
Автор

Thank you for your tutorial Brad, great tutorial and to the point explanation about Next JS .

RianYK
Автор

Thank you for your tutorials I'ved been watching your tutorial videos since 2016. The best tutorial in the industry.

jayrocks
Автор

Hey, just wanted to say you don't need an extension to preview markdown. Vscode has a builtin thing for that, and it's one of those icons with a magnifying glass, that you have two of them.

ELmarianchi
Автор

You can also deploy through the vercel CLI :)

llamafactorySA
Автор

Awesome video Brad, Thank you . Would love to see this same project done in Nextjs 13 as well. So please make a video if you ever get the chance.

craiggazimbi
Автор

This looks familiar, your nextjs course on udemy.

dammyola
Автор

Thank you for this great tutorial! One issue with this approach is that the images can not be previewed on Markdown files, because from an HTML point of view, the images are in '/images/posts', but for Markdown's perspective, the images are in '../public/images/posts'

AdarlanTeixeira
Автор

Traversy media and Free coding camp puts the new videos at the same day same time ... This is 3rd time .. can not be coincidence 😄

mihirdharangaonkar
Автор

Never clicked a notification so fast before

supercoolcat
Автор

Wonder who that champion bashed that unlike for this awesome tut, this is cool bro

jasonshen
Автор

Thanks, I will watch this video in the weekend

toanho
Автор

21:32 at this point something like infinite loop is going on in my browser.. But kinda slow.. Is it ok??

maximk
Автор

Awesome tutorial! Thanks for sharing it! All the best!

gabrielmoraes