Open In App

How to Build Portfolio Website And Host It on GitHub Pages?

In this article, you will learn

You can showcase this portfolio on your resume. So let’s get started!!



Downloading Portfolio Website Template

We’ll look for some awesome, responsive portfolio design templates online which are free of cost. The site HTML5up (https://html5up.net/) has many good choices for a personal portfolio with a lot of professional transitions and CSS/Bootstrap stuff. 

Some fine choices for the template are listed below:

Download the template as a ZIP by clicking on the Download option in top right corner.



Customize Accordingly!

Now extract the files from the ZIP and have a close look. You may see folders such as ‘images’, ‘assets’ and files like ‘index.html’, ‘license.txt’ and ‘readme.txt’.

Also you can put your own images and background by changing the pictures in the images folder, but remember to put the same ‘filename’ as it has.

Once you are done and satisfied, you can change the CSS and styling. Well that is totally optional if you are a complete newbie.

VS Code editor for editing your files

Uploading into a GitHub Repository

Finally your files now needs to be pushed into a new GitHub repository and has to be hosted using GitHub Pages. To push your portfolio website’s necessary files in GitHub follow the given steps:

Click on New option

Enter the necessary details and click on Create Repository

 

You can upload all the necessary files from your computer in two ways: 
 

1. Using in-browser GitHub Website Drag/Upload Option

 

 

Upload the necessary files and click Commit Changes

 

 

2. Using Git Version Control

 

 

$ git init

$ git add . 
 

# Adds the files in the local repository and stages them for commit. To unstage a file, use ‘git reset HEAD YOUR-FILE’. 
 

$ git commit -m “First commit” 
 

# Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use ‘git reset –soft HEAD~1’ and commit and add the file again. 
 

 

Click the Clipboard icon to copy the URL

 

$ git remote add origin remote <repository URL>
# Sets the new remote
$ git remote -v
# Verifies the new remote URL
$ git push -u origin master
# Pushes the changes in your local repository up to the remote repository you specified as the origin

Hosting Using GitHub Pages

 

 

 

 

Your personal portfolio website is published at https://<your-github-username>.github.io 

You can take a look at mine here – https://chandrikadeb7.github.io/
 

Article Tags :