Create a blog page
Welcome! This guide will help you set up a simple blog that uses MDX files (they look like normal text files). We’ll use a ready-made blog starter so you can get going quickly. If you prefer, you can browse the starter here:https://github.com/magicuidesign/blog-template
.
What you’ll get
- A clean blog website
- Posts written as plain files ending with
.mdx
- A place to add your posts and publish them
Step 1: Get the blog template
- Open the template page:
https://github.com/magicuidesign/blog-template
. - Click “Use this template” or “Fork” to copy it to your account.
- Download it to your computer (or clone it if you use Git tools).
Step 2: Open the project
- Open the folder you downloaded in your code editor (for example VS Code).
- You’ll see folders like
app
,components
, and more. Don’t worry about them.
Step 3: Install and run (one-time setup)
If you have a developer helping you, ask them to run the app once to make sure it starts. They’ll typically:- Install packages
- Start the website locally
- Open a terminal in the project folder
- Run
npm install
- Run
npm run dev
- Open the link it prints (usually
http://localhost:3000
)
Step 4: Where your blog posts live
Your posts will be simple.mdx
files stored in a folder. A common place is lib/blogs
inside your project. If that folder doesn’t exist, create it.
Example folder:
Step 5: Create your first post
- Inside
lib/blogs
, create a new file, for example:my-first-post.mdx
. - Paste this example and change it to your needs:
- Save the file.
Step 6: See your post on the site
If the site is running locally, refresh the page. Your blog should list the new post. If you’re publishing to the internet, ask your developer to deploy the site (for example to Vercel). Once deployed, your post will appear automatically.Step 7: Add more posts
Repeat Step 5 for each new post. One file per post. Use a short, simple filename ending in.mdx
.
Tips for great posts
- Keep titles short and clear
- Start with a short summary in the description
- Use headings to break up long content
- Add images when they help explain
At the end: Sarah, your digital employee, can create
.mdx
blog posts for you in the correct format and place them in lib/blogs
. Those files will be picked up and shown on your blog automatically.