Setting up a personal website on GitHub
You can do this entire tutorial from your browser!
Steps
-
Register for a GitHub account.
- You will need an email account, I recommend a gmail account with the same name as your Github account alias.
- pick a name that you want to use as your alias forever.
- you will by typing this alias a lot!
- I recommend an alias that
- is made of only lowercase a-z characters
- is less than 10 characters
-
(optional) Create a Logo for your alias
- You can change this whenever but it acts as your symbol
- (I've never changed mine)
-
Create a repository with
ALIAS.github.io
whereALIAS
is your github alias.- Click
Create repository
- set the repository name to
ALIAS.github.io
whereALIAS
is your github alias. - Enter a description of
my website
- Check
Add a README file
- Click
-
There are two main options for your website
- Website using HTML
- Blog using Jekyll
-
For your first site use HTML to check that everything is working.
- Setting up Jekyll is difficult and requires installing things on your desktop, you can always switch to Jekyll later.
-
We are going to create the main page for the site called
index.html
-
On the open repository in your browser click
Add file
->Create new file
-
Name the file
docs/index.html
-
Copy and paste the following into the file.
<!DOCTYPE html> <html lang='en'> <head> <!-- Metadata goes here --> <meta charset='UTF-8' /> <title>Hello World!</title> </head> <body> <!-- Content goes here --> <h1>Hello World!</h1> </body> </html>
-
click
Commit new file
-
Now we will to set up the repository to publish the site
-
Click
Settings
->Pages
-
Set source to
Deploy from branch
-
Set branch to main /docs
-
Click
Visit site
to visit your new website!