Skip to content
the poor coder

Add GitHub Pages dependency package

Poor Man
Published
Reading time
1 min read
On this page

Add GitHub Pages dependency package#

If you are looking for a way to host your website for free and share your project with the world, GitHub Pages is the perfect solution. GitHub Pages is a free service provided by GitHub that allows you to host your static website directly from a GitHub repository. To add GitHub Pages dependency package, follow the steps below:

Step 1: Create a GitHub Repository#

  • Go to github.com and sign up or log in to your account.
  • Create a new repository by clicking on the "New" button.
  • Name your repository as "username.github.io" where "username" is your GitHub username. Make sure your repository is public.
  • Click on the "Create repository" button.

Step 2: Create an HTML file#

  • Create an HTML file with a basic structure that includes a head and body section.
  • Save the file with the name "index.html" and add it to your repository.

Step 3: Add GitHub Pages Dependency Package#

GitHub Pages requires a Jekyll theme to render your HTML file. To add this dependency package, follow the steps below:

  1. Create a file named Gemfile in the root directory of your repository.
  2. Add the following code to it:
Ruby

        source 'https://rubygems.org'
        gem 'github-pages', group: :jekyll_plugins
    
  1. Commit and push the Gemfile to your repository.

Congratulations! You have successfully added the GitHub Pages dependency package to your repository. Now, you can visit your website at "https://username.github.io" where "username" is your GitHub username.

Keep going

2023

how to sort an array

How to Sort an Array If you have an array and you want to order its elements in a specific way, you need to use a sorting algorithm. There are several sorting algorithms available, but two of the most commonly used are…

javascript2 min read
2023

jquery mobile or desktop

jQuery Mobile or Desktop? As a web developer, I have had some experience with both jQuery Mobile and jQuery Desktop. Both frameworks have their pros and cons, and which one to use really depends on the specific project…

javascript1 min read
2023

node.js folder structure

Node.js Folder Structure If you are new to Node.js, it can be daunting to create a folder structure that will work for your project. The structure you choose will depend on the size and complexity of your project. Here…

javascript1 min read
ESC