How to Enable GitHub Pages from the Repo?

Posted by

Enable GitHub Pages

Have you ever wondered how to showcase your projects to the world using GitHub? Well, you’re in luck because GitHub Pages allows you to do just that! In this article, we’ll go through the steps to enable GitHub Pages from the repo, so you can share your work with the world.

What are GitHub Pages?

GitHub Pages is a free service that allows you to host a website directly from your GitHub repository. This means you can showcase your projects, personal website, or blog to the world without having to pay for hosting. Plus, it’s easy to set up and maintain.

GitHub Pages

Enabling GitHub Pages

Enabling GitHub Pages is a straightforward process. First, navigate to your repository on GitHub. Once you’re on the repository page, click on the “Settings” tab on the right-hand side of the page. Scroll down to the “GitHub Pages” section.

Click on the Setting option
Select the GitHub Pages option

In the “GitHub Pages” section, you’ll see a drop-down menu under “Source.” By default, this will be set to “None.” Click on the drop-down menu and select the branch you want to publish as your GitHub Pages source.

Select the branch from the none option

Once you’ve selected the branch, click on the “Save” button. GitHub Pages will then generate a URL for your website, which you can access by clicking on the link under the “GitHub Pages” section.

Generate Domain URL with save option

Customizing Your GitHub Pages Site

Now that your GitHub Pages site is live, you may want to customize it to your liking. You can do this by creating an index.html file in the root of your repo.

See the Github pages through the live link

GitHub Pages support Jekyll, a static site generator, which means you can use Jekyll to create a custom theme for your site. You can also use CSS to style your site.

Conclusion

Enabling GitHub Pages from your repository is a great way to showcase your projects to the world. It’s easy to set up, and best of all, it’s free! With the ability to customize your site using Jekyll and CSS, you can make your site truly unique. So, what are you waiting for? Enable GitHub Pages today and start sharing your work with the world!

guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x