To add a new blog post to the website, follow these steps:
-
Create a new Markdown file (with a
.mdextension) in theblog_postsdirectory (located in the root of the project). For example,my-new-post.md. The filename (without the extension) will be used to generate the URL slug for the post (e.g.,/blog/my-new-post). -
Add Frontmatter: At the very beginning of your Markdown file, include a YAML frontmatter block enclosed by triple-dashed lines (
---). This block contains metadata for your post. Here's an example of the required and recommended fields:--- title: "Your Amazing Blog Post Title" date: "Month Day, Year" # e.g., "October 27, 2023" - this format is preferred for date sorting author: "Your Name" featuredImage: "URL_to_your_featured_image.jpg" # Optional: URL for an image to display at the top categories: [PrimaryCategory, SecondaryCategory] # Optional: A list of categories tags: ["keyword1", "relevant_tag", "another_one"] # Optional: A list of tags metaDescription: "A short, compelling description of your post for SEO and previews." ---
-
Write Your Content: Below the frontmatter, write your blog post content using standard Markdown syntax.
- Headings (e.g.,
## Section Title,### Subsection) will be used to automatically generate a Table of Contents for your post. - You can use all standard Markdown features like lists, bold, italics, links, images, blockquotes, code blocks, etc.
- Headings (e.g.,
Once you add the file and push the changes (if using a version control system integrated with Vercel or a similar hosting platform), the website should automatically pick up the new post and display it on the blog index page and its own dedicated page.