Future As Samaمستقبل سما
← Back to blogs

How to Add New Blogs

How to Add a New Blog Post

Adding a new blog post to Future As Sama is simple. Just follow these steps:

1. Create a Markdown File

Navigate to the

text
content/blogs
directory in your project. Create a new file with a
text
.md
extension. The filename will be the URL slug.

Example:

text
my-new-post.md
becomes
text
/blogs/my-new-post
.

2. Add Frontmatter

At the top of your file, add the metadata (frontmatter) between three dashes

text
---
.

yaml
--- title: "My New Post Title" date: "2024-12-22" image: "/images/my-post-image.jpg" # Optional tags: ["Tech", "Space", "AI"] excerpt: "A short summary of your post." ---

3. Write Your Content

Write your blog post using standard Markdown. You can use:

  • Headers (
    text
    #
    ,
    text
    ##
    ,
    text
    ###
    )
  • Lists (
    text
    -
    ,
    text
    1.
    )
  • Bold and Italic text
  • Links and Images
  • Code blocks

Code Block Example

javascript
console.log("Hello, Future As Sama!");

4. Push to GitHub

Once you've created the file:

  1. Commit your changes:
    text
    git commit -m "Add new blog post"
  2. Push to GitHub:
    text
    git push

The site will automatically update with your new post (if deployed on Vercel/Netlify).

Enjoy blogging!