A blog built with Next.JS where Omlette's can write about their journeys.
This section covers how to create a new blog post.
-
Open a new terminal and run.
yarn dev -
Open
http://localhost:3000/in your browser. -
Create a new folder in the
src/postsdirectory with the short name of the blog post.Ex,
src/posts/my-first-post -
Create a file inside that folder called
page.1.md. MDX is also supported. -
Add the following metadata to the top of the
page.1file.--- title: "" date: "00/00/0000" summary: "" image: "/" alt: "" --- -
You can then begin writing the blog post.
-
For multi page blogs, create a new file called
page.X.mdwhere theXis the page number. -
Other pages just need the title in the metadata.
--- title: "" ---