Building Website - Part 2 - Creating New Posts
06 Sep 2020In Part 1, I showed how to create a new website. In this part, we focus on how we write new articles in the website.
Step1 : Download Typora (Windows / Mac)
The website made in Jekyll all uses a language called Markdown to compose the articles. You don’t need to understand Markdown though. There is a beautiful software Typora. It is markdown writer, you write as you write in MS Word, and it converts it to Markdown as you write.
Step 2 : Copy a sample Markdown File locally from Github
- Go to the repository you created in Part 1 github.com/
/ .github.io/ - Go to folder _posts
- Copy a sample markdown file, or download the file from here
Step 3 : Edit the Markdown file in Typora
-
Post file name should be in format YEAR-MONTH-DAY-title.md
-
Every post has header, which is meta-data. Update title and date
Raw Format
---
layout: article
title: "MAF Method - Part1"
date: 2019-03-10 02:46:16 -0400
comments: true
categories: running
---
As seen in Typora
-
Content
You can add text, image, table. Basically, anything you can do in MS Word, you can do here. Playing around is the best way to learn on this.
Step 3 : Save the file back in Github
-
Browse to your github repository github.com/
/ .github.io/_posts -
Drag the created file here
Voila, your new post is ready. It will appear in 1-2 minutes on
.github.io, and custom domain too
Pending Parts
- How to save the images in GitHub
- Advanced Users - How to use the GitHub desktop