Skip to content

Sagar Kunwar

Menu
  • Home
  • YouTube
  • Blog
  • Contact
  • Privacy Policy
Menu

Creating a Tech Blog with Jekyll and GitHub Pages

Posted on June 19, 2025June 19, 2025 by Sagar Kunwar

Creating a Tech Blog with Jekyll and GitHub Pages

Hello there, aspiring tech blogger! 🚀 You’ve got the ideas and the passion. All you need now is the perfect platform to share your thoughts with the world. Why not create your very own tech blog using Jekyll and GitHub Pages? Don’t worry if you’re new to these terms; we’ll go through everything step-by-step. By the end of this tutorial, you’ll be ready to launch your blog awesomely into the interwebs. Ready? Let’s jump in!

What Is Jekyll And Why Use It?

Jekyll is a static site generator. That might sound a little complex, but it just means Jekyll takes your text files (written in markdown), combines them with templates, and generates a complete static website — think lightning-fast loading speeds, secure hosting, and simplicity!

GitHub Pages is a free hosting platform for your Jekyll blog. It’s kindly provided by GitHub and tightly integrated with Jekyll, making it a popular choice for techies like us. Let’s set this up!

Setting Up Your Environment

1. Install Git

First things first: you’ll need Git to help download Jekyll and track changes.

– Windows: Download and install Git from git-scm.com.
– macOS: Git comes pre-installed.
– Linux: Open your terminal and run: sudo apt-get install git.

2. Install Ruby

Jekyll is built upon the Ruby programming language. It’s kind of like Jekyll’s oxygen.

– Windows: Download Ruby Installer from rubyinstaller.org.
– macOS and Linux: Ruby comes pre-installed, but it’s always a good idea to update to the latest version:

bash
sudo apt-get install ruby-full

3. Install Jekyll and Bundler

Open your terminal and type:

bash
gem install jekyll bundler

That’s it! Now you’re ready to create your blog.

Creating Your Tech Blog with Jekyll

1. Create a Jekyll Site

Navigate to the directory where you want your blog to be. Then, run:

bash
jekyll new my-awesome-blog
cd my-awesome-blog

Here, my-awesome-blog is just the folder name. Feel free to name it anything you prefer.

2. Serve Your Blog Locally

Let’s check out what we’ve created so far. In your terminal, run:

bash
bundle exec jekyll serve

Open your browser and go to http://localhost:4000. You should see your new blog!

Customize Your Blog

Editing your site is where all the fun begins!

1. Modify Your Config File

Open _config.yml located in your blog directory. This file contains settings for your site. Here’s what you might change:

– Title: Name of your blog.
– Description: A short description or tagline.
– URL: Website address when published.

2. Add a New Post

Navigate to the _posts directory. Create a new markdown file named with the date and title like 2023-03-24-my-first-post.md. Use this structure:

markdown
---
layout: post
title: "My First Post"
date: 2023-03-24
---

Hello World! This is my first post on my awesome tech blog!

Jekyll will automatically include this in your blog, thanks to the naming convention.

Hosting on GitHub Pages

1. Create a GitHub Repository

– Visit GitHub and log in or sign up.
– Create a new repository named username.github.io (replace username with your GitHub username).

2. Push Your Blog to GitHub

Return to your blog folder in the terminal, then:

bash
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/username/username.github.io.git
git push -u origin main

If everything goes well, visit https://username.github.io and see your live blog!

Final Thoughts

Congratulations, future blogger! 🎉 You’ve created your tech blog with Jekyll and GitHub Pages. Isn’t it exciting to know that your creative outlet is now live for the world to see? We’ve gone through installation, customization, and hosting, but that’s just the start.

Practice Ideas

1. Explore Themes: Browse Jekyll themes on Jekyll Themes to personalize your blog’s appearance.
2. Add Pages: Try adding a new About or Contact page. Look for tutorials on using Liquid, Jekyll’s templating language.
3. Use Plugins: Discover how to extend Jekyll’s functionality with plugins.

Remember, every big endeavor begins with small steps. With each tweak and post you publish, you get better. So, keep exploring, keep writing, and, most importantly, enjoy the process. Your audience is waiting! 🌟

(Visited 14 times, 1 visits today)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Guide to Responsive Images with `srcset`
  • # Creating and Validating Forms in React with Formik
  • Setting Up Multiple Pages with React Router DOM v6
  • How to Use VS Code Like a Pro: Extensions and Shortcuts

Categories

  • Blog
  • Javascript
  • PHP
  • Support
  • Uncategorized
  • Web Hosting
June 2025
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930  
« May   Jul »
© 2025 Sagar Kunwar | Powered by Superbs Personal Blog theme