Skip to content

Commit

Permalink
add documentation for how to make a blog post (#542)
Browse files Browse the repository at this point in the history
* add documentation for how to make a blog post

* update README file
  • Loading branch information
haroon10725 authored Nov 18, 2024
1 parent 2326de4 commit 4a675b2
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,33 @@ In this section, we will guide you through the steps to add new icons. By follow

8. **Updating Ion Icons**
* Install the latest version of Ion Icons by running the following command:
`npm i ionicons@7`
`npm i ionicons@7`

### How to make a blog post?
In this section, we will guide you through the steps for creating a new blog post.

1. **Navigate to the _post directory:**
* In the site's main directory, open the _post folder. This is where all your blog posts are stored.

2. **Create a New Markdown File:**
* Create a new file in the _posts folder. Name the file in the format `YYYY-MM-DD-title.md`.

3. **Add Front Matter:**
* At the top of your new file, add front matter between `---` lines. This metadata tells Jekyll how to handle the post. Here’s a basic template:

```
---
layout: post
title: "How to Make a Blog Post?"
date: YYYY-MM-DD
categories: press
---
```

* We have three categories: press, event, and community.

4. **Write your content:**
* Below the Front Matter, write the content for your blog post in Markdown. You can add headings, images, links, lists, and more using Markdown syntax.

5. **Save and Preview:**
* Save the file, then run `jekyll serve` in your terminal to start the local server. Visit `http://localhost:4000` to preview your blog post.

0 comments on commit 4a675b2

Please sign in to comment.