https://your-username.github.io/
" and replace "your-username
" with your actual GitHub username.awesomecoder
, you'll want to visit the web page "https://awesomecoder.github.io/
" instead of "https://your-username.github.io/
".web-site-jekyll-04-github-pages
" to a value matching the following pattern instead:your-username.github.io
" and replace "your-username
" with your actual GitHub username. (It's the value in the "Owner" picklist just to the left of the "Repository name" prompt.)awesomecoder
, you'll want to write "awesomecoder.github.io
" instead of "your-username.github.io
".
Let's turn your new codebase into a website. Take a look at the website that yours will look like once you get through this section of the instructions.
(Ignore that the URL of my sample website is a little different than the URL structure I'll be having you use in this tutorial.)
Deploy from a branch
."None
" to say "main
" instead.
https://your-username.github.io/
" and replace "your-username
" with your actual GitHub username.awesomecoder
, you'll want to visit the web page "https://awesomecoder.github.io/
" instead of "https://your-username.github.io/
".Now let's play with changing the way that website looks by editing the code and "committing" your codebase changes into the codebase hosted online at GitHub.com (and known as a "Git repository") that you created when you made a "fork" from the original sample codebase.
index.md
" file buried within the codebase:https://github.dev/your-username/your-username.github.io/blob/main/pages/index.md
" and replace "your-username
" with your actual GitHub username.awesomecoder
, you'll want to visit the web page "https://github.dev/awesomecoder/awesomecoder.github.io/blob/main/pages/index.md
" instead of "https://github.dev/your-username/your-username.github.io
/blob/main/pages/index.md".index.md
" whose body contains the following (if you don't see it within a minute, close the browser tab and try again -- sometimes the system hangs a bit):---
permalink: /index.html
title: Tiny Jekyll web site home page
layout: fancy_announcement
---
Hello, world
world
" from the phrase "Hello, world
" and type your own name in its place. Within a few seconds of the moment that you stop typing, this web site will auto-save your work as if you had clicked "File -> Save" in a desktop text editor (much like Google Docs auto-saves your work when you pause typing).https://raw.github.com/your-username/your-username.github.io/main/pages/index.md
" and replace "your-username
" with your actual GitHub username.awesomecoder
, you'll want to visit the web page "https://raw.github.com/awesomecoder/awesomecoder.github.io/main/pages/index.md
" instead of "https://raw.github.com/your-username/your-username.github.io/main/pages/index.md
".Y
"-shaped icon just below the magnifying glass icon, which now has a blue number "1
" in a circle superimposed over it. When you hover over the icon you need to click, it will be labeled labeled "Source Control."
My first edit
".index.md
" until icons appear to the right of it. Click the icon that looks like a "+
" (plus sign) and that, when you hover over it, is labeled "Stage Changes." You should see "index.md
" move out of "Changes" and upward into a new section called "Staged Changes."https://raw.github.com/your-username/your-username.github.io/main/pages/index.md
" and replace "your-username
" with your actual GitHub username.awesomecoder
, you'll want to visit the web page "https://raw.github.com/awesomecoder/awesomecoder.github.io/main/pages/index.md
" instead of "https://raw.github.com/your-username/your-username.github.io/main/pages/index.md
".Hello, world
," the website greets you by name:https://github.dev/your-username/your-username.github.io
" and replace "your-username
" with your actual GitHub username.awesomecoder
, you'll want to visit the web page "https://github.dev/awesomecoder/awesomecoder.github.io
" instead of "https://github.dev/your-username/your-username.github.io
".If it's taking more than 5 minutes for your website to appear on the internet after you "commit and push" a change (or after you first set up your "repository" to be connected with "GitHub Pages" in the first place), you might be able to get some visibility into what's going wrong at https://github.com/your-username/your-username.github.io/actions/workflows/pages/pages-build-deployment (work you've done flips to having green checkboxes to the left of it as it completes its work going live onto the internet, in the main panel under a count of "workflow runs") and at https://github.com/your-username/your-username.github.io/deployments (work you've done appears under "Deployment History" each time a website update fully finishes going live onto the internet -- with "commit numbers" associated to each effort, and your "commit" history can be seen at https://github.com/your-username/your-username.github.io/commits/main). Replace "your-username
" as appropriate in all 3 of these links, of course.
https://www.githubstatus.com/ is also a great resource that will let you know if something's broken with GitHub Pages altogether -- those outages can take hours or days to get fully resolved, but should eventually self-heal.
Also, don't forget that none of this works if you don't name your repository correctly when you fork it. Delete your repository off of GitHub.com and start over if you made a typo.
something-else
, then your website will be at https://your-username.github.io/something-else/
instead of https://your-username.github.io/
, and all of the instructions I've given you that have the phrase "your-username/your-username.github.io
" in them need to be thought of as if I'd typed them "your-username/something-else
" instead, and then you have to replace both "your-username
" and "something-else
," which seemed like a lot to explain. But that's actually what I did with my sample website based on this codebase.)