To seamlessly integrate a blog post, follow these steps.
Add your blog post in Markdown format to ./public/blog-posts/
. Keep the file name consistent with the blog post title.
./public/blog-posts/[title-of-the-blog-post].md
Place relevant images in ./public/img/blog-posts/[title-of-the-blog-post]/
.
./public/img/blog-posts/[title-of-the-blog-post]/[image].[png/jpg/svg]
Ensure correct image paths in your Markdown file. Example:
![Cover Image](../img/blog-posts/[title-of-the-blog-post]/cover.jpg)
Add post metadata to ./src/data/blog.json
following this format:
{
"id": "a-mev-racing-story",
"name": "A (MEV) Racing Story",
"description": "What do we know about the dark forest 2.0?",
"date": "05/04/23",
"tags": ["MEV", "Flashbots"],
"image": "/img/blog-posts/a-mev-racing-story/cover.jpg"
},
// next blog posts...
-
Image Optimization:
-
Image Formats:
- PNG for transparency.
- JPG for non-transparent images.
- SVG for logos.