To customize your website's domain name, it's as easy as 1, 2, 3i, 3ii!
-
Go to Namecheap and buy a domain you like! Remember, the GitHub student developer pack comes with a free
.me
domain from Namecheap, in case you don't want to spend any money. -
In your
username.github.io
repo, at the same level asindex.html
create a file calledCNAME
. Inside that file, add just one line: your new domain name, all lowercase, and nothing else. For example, if you buycoolperson.me
, your site's CNAME is just:coolperson.me
-
In Namecheap, in your dashboard, click “Manage” on the domain name you just bought. Then click on Advanced DNS from the tabs in the middle of the page. Then, do the following:
- Use the red “Add new record” button to add two A Records, both
with host
@
, one with the IP address192.30.252.153
, the other with IP address192.30.252.154
. - Use the red “Add new record” button to add a CNAME Record, with
host
www
and the value[username].github.io.
. Don't leave out the dot at the end of it!
- Use the red “Add new record” button to add two A Records, both
with host
You'll need to wait at least half an hour for the changes to finish, but after that, everything should work like you want it to.
While you were designing your website, did you ever think about what it would look like on a phone? More and more people browser the internet using their phones, and it's our duty as web developers to make sure our websites' user experience is just as good on a phone or tablet.
The best way to do this is in your CSS, with media queries! That's how this website looks passable on mobile.
- Here's a quick introduction.
- Here's a great reference guide.
- Here are some interesting tricks if you want to get your brain working hard.
Ever wonder how there's a little green J next to the
title
in your browser's tabs? It's called a favicon,
and all the cool kids will have one on their personal sites.
You can make one with this silly tool, and
store it at the same level as your index.html
with the
name favicon.ico
.
To use a .png
, or to get more information about the
rabbit hole that is the favicon, check out this incredibly detailed
guide. Don't spend too
much time there or your brain will explode.
Why make a personal site if you can't have incredibly detailed information about how many people are visiting your website every day, where they're from, and what browser they're using? Google Analytics is such a comically useful tool that every time I use it I'm amazed at how free it is.
The guide on the Google Analytics site should be enough to get you started; here is an extra-detailed guide in case you get stuck.
I love web design, but I recognize that not everyone shares my love for wrangling with CSS. If that sounds like you, you should check out Bootstrap: it's a CSS framework, which provides a lot of built-in styling that works well on all devices.