Github Pages
Step 1: Enable GitHub Pages
In this course, you'll create a blog hosted on GitHub Pages and learn how to:
Enable GitHub Pages
Use Jekyll, a static site generator
Customize Jekyll sites with a theme and content
The first step to publishing your blog to the web is to enable GitHub Pages on this repository 📖. When you enable GitHub Pages on a repository, GitHub takes the content that's on the main branch and publishes a website based on its contents.

Under your repository name, click Settings.
In the "GitHub Pages" section, in the Source drop-down, select main branch.
Step 2: Customize your homepage
Create your homepage
Navigate to the Code tab of this repository, and browse to the
index.mdfileType the content you want on your homepage. You can also modify
title:or just ignore it for now.Scroll to the bottom, type a commit message, and click Create a new branch for this commit and start a pull request
Open a pull request
Step 3: Merge your pull request
Activity: Merge your pull request
Click Merge pull request below.
Click Confirm merge.
Click Delete branch.
\



Step 4: Customize Site Details
Getting your page blog ready
Jekyll uses a file titled _config.yml to store settings for your site, your theme, and reusable content like your site title and GitHub handle.
You can check out the _config.yml file on the Code tab of your repository.
Activity: Modify the config file
Let's change the _config.yml so it's a perfect fit for your new blog. First, we need to use a blog-ready theme. For this activity, we will use a theme named minima.
Navigate to the Code tab of this repository, and browse to the
_config.ymlfile, or click this link here.In the upper right corner, click ✏️ to open the file editor.
Add a
theme:set to minima so it shows in the_config.ymlfile as below:Modify the other configuration variables such as
title:,author:, anddescription:to customize your site.Click Create a new branch for this commit and start a pull request.
Open a pull request.
Step 5: Create a blog post
Activity: Add some content to your blog
On the "Code" tab, select your
nishanthkumarpathi-patch-1branch.Click Create new file.
Name the file
_posts/YYYY-MM-DD-title.md.Replace the
YYYY-MM-DDwith today's date, and change thetitleof your first blog post if you'd like. Note: If you do edit the title, make sure there are hyphens between your words.If your blog post date doesn't follow the correct date convention, you'll receive an error and your site won't build. For more information, see "Page build failed: Invalid post date".
Type a quick draft of your blog post. Remember, you can always edit it later.
Commit your changes to your branch.

Step 6: Add blog post metadata
Activity: Add Front Matter to your Blog Post
Click the "Files Changed" tab in this pull request.
There are two files in the "Files Changed" tab, the
_config.ymlfile and the_posts/YYYY-MM-DD-title.mdfile. Make sure to edit the file in the_postsfolder.Click on the icon to edit on the right side of the screen.
Type the following content at the top of your blog post:
Replace YOUR-TITLE with the title for your blog post.
Replace YYYY-MM-DD with today's date.
Commit your changes to your branch.
Last updated