Design your Modern Porfolio Now!
24 February 2024 -
4 mins read time
Tags:
Blog
Open Source Contributions
How to Turn Any GitHub Pages Website into Your Own Portfolio
Find GitHub Pages to Personalize
Visit any GitHub Pages website published online, such as https://naren200.github.io. Once you’ve found the one that resonates with you, follow the guide to transform it into your unique portfolio. Let’s showcase your journey!
Introduction
So, you’ve found a fantastic GitHub Pages website that you want to turn into your personal portfolio? Great choice! In this guide, we’ll walk you through the process of forking any GitHub Pages repository and customizing it to showcase your projects, skills, and experiences.
Prerequisites
Before we get started, make sure you have the following:
- A GitHub account
- Basic knowledge of Git and GitHub
Steps to Make It Yours
Github Repo for demo: https://github.com/naren200/naren200.github.io
- Fork the Repository:
- Fork the GitHub repository by navigating to the repository you want to use.
- Click on the “Fork” button in the top right corner of the page.
- Rename the forked repository as “your_github_page_name.github.io”. For example, “your_github_page_name” is “naren200” for my github profile. So, I have created my project name as “naren200.github.io”.
- Configure GitHub Pages:
- Navigate to your repository’s Settings.
- Under “Pages” in the left sidebar, find the “Build and deployment” section.
- Set the branch to “main” and the folder to “/root”.
- Save the changes.
- Check Your Website:
- Your page is now building in the background. Give it 1-2 minutes.
- After the build is complete, visit “https://your_github_page_name.github.io” to see your website.
- Visit “https://your_github_page_name.github.io/about” or your custom pages to see your updated content.
- Customize the Content
- Edit the HTML, CSS, and other files to reflect your information.
- Update the “About Me,” “Projects,” “Experience,” and other sections with your details.
Getting Started to locally host and Modify your portfolio in linux!
To run the website locally and preview changes, follow these steps:
To preview changes locally, follow these steps:
-
Clone the repository to your machine:
git clone https://github.com/your_github_page_name/your_github_page_name.github.io.git
-
Navigate to the project folder:
cd your_github_page_name.github.io
-
Install Jekyll and Bundler: Before running the site locally, ensure you have Jekyll and Bundler installed on your machine. Follow the steps:
-
Install Jekyll. For more information about the prerequisites, see “Creating a GitHub Pages site with Jekyll.”
-
Install Ruby. Refer to the Installing “Ruby” guide for details.
-
Install Bundler using the following command:
gem install bundler
-
- Install Jekyll dependencies: While in the project directory, run the following command to install the necessary dependencies using Bundler.
bundle install
- Run your Jekyll site locally: Start the local development server using the following command:
bundle exec jekyll serve
Your site will be available at
http://localhost:4000
orhttp://127.0.0.1:4000/
in your web browser. -
Preview Changes: Open your web browser and navigate to http://localhost:4000 or http://127.0.0.1:4000/ to preview the locally running site.
- Publish Your Changes: Once satisfied with your changes:
- Commit and push your changes to GitHub.
- GitHub Pages will automatically build and reflect your updates.
- Updating the GitHub Pages gem: Over a period of time, Keep your Jekyll environment up-to-date. Open your terminal and run the following command:
- If you installed Bundler:
bundle update github-pages
- If you don’t have Bundler installed:
gem update github-pages
- If you installed Bundler:
By following these steps, you’ll have the necessary programs installed, and you’ll be able to launch and preview your GitHub Pages site locally.
Conclusion
Congratulations! You’ve successfully turned any GitHub Pages website into your personalized portfolio. Showcase your skills and experiences to the world. Best of luck!
Contributing
Contributions are welcome! If you find issues or have suggestions over my template, open an issue or submit a pull request.
Acknowledgements
naren200.github.io
template - https://naren200.github.io- Jekyll template: Bay Theme by Elliot Vincent
- Back-to-top button inspiration: Matthew Cain’s Codepen
- Search inspiration: Simple-Jekyll-Search
- Javascript widget: Revolvermaps