Skip to content

Commit

Permalink
Update Blog Post
Browse files Browse the repository at this point in the history
  • Loading branch information
randalvance committed Sep 27, 2020
1 parent c33ba35 commit 287f9a7
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions blogPosts/creating-a-blog-with-11ty-and-netlify-cms.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,37 @@ tags:
- 11ty
- netlify
---
This is a draft.


In this tutorial, I will guide you on creating a blog using JAM Stack.

What is 11ty?
* It is a static site generator.
- It is a static site generator.

# Creating a new 11ty Project
Let's first install the eleventy CLI by running the following command.
```text
npm install -g @11ty/eleventy
```
Create a new folder for the project.
```text
mkdir my-blog
cd my-blog
```
Open the current directory in your preferred editor. I'll be using Visual Studio for this tutorial.
```text
code .
```
Create a new markdown file `index.md` with the following content.
```markdown
# Welcome to my Blog
```
We can generate an HTML based of this markdown file by running the `eleventy` command.
```text
eleventy
```
By default, a `_site` folder with an `index.html` file which corresponds to the `index.md` file.
The content of the generated `index.html` file is as follows.
```jsx
<h1>Welcome to my Blog</h1>
```

0 comments on commit 287f9a7

Please sign in to comment.