Follow these steps to set up your personal portfolio site using Jekyll and GitHub Pages.
-
Go to GitHub and create a new repository named:
YourUserName.github.io
- Make sure you are the owner of this repository.
- Start with a template and choose the
CSG / PortfolioRepoTemplate.
-
Clone the repository locally to your computer so you can edit it
- Go to rubyinstaller.org and download Ruby+Devkit 3.3.x (x64).
Important
The Devkit is required because it includes tools to compile native extensions.
-
Run the installer. At the end, you will see the
ridk installprompt. Run it and select all three options in order:-
Base installation (ensures Ruby environment is set up)
-
System update (updates internal tools)
-
MSYS2 & MINGW development toolchain (necessary compiler tools)
-
Open your terminal (Command Prompt, PowerShell, or Windows Terminal) and run:
ruby \-vYou should see something like:
ruby 3.3.10Then check ridk:
ridk version- If you see information about MSYS2, gcc/cc, and toolchains, your setup is ready.
Change your terminal directory to your local portfolio repo:
cd "D:\\Students\\YourName\\Portfolio\\my-site"- Install Bundler:
gem install bundlerWarning
If prompted to update RubyGems or Bundler, you can ignore it for now.
- Install all dependencies for your site:
bundle installStart a live preview of your site:
bundle exec jekyll serve \--livereload \--drafts \--future-
--livereload→ automatically refreshes your browser when you save changes -
--drafts→ includes draft posts -
--future→ includes posts scheduled for future dates
Warning
Every time you close your terminal, the server stops. You will need to rerun the command to preview your site again.
Once the server is running, your terminal will display:
Server address: http://127.0.0.1:4000/
-
Open this address in your browser to view your site locally.
-
Any changes you make will appear live if the terminal server is running.
-
Commit frequently as you work on your portfolio.
-
Keep your local server running while editing for live previews.
-
When finished editing locally, push your changes to GitHub to update your live site.