Did you know that GitHub has this thing called "GitHub Pages"? I had heard about it in passing before but recently heard about it again from my coding bootcamp as a resources to post a website. I like this idea. I am already using GitHub as a source to hold code in general so why not a website about the code I am working on, right?
It is really as simple as creating a repository with your username and "github.io" like "username.github.io". I didn't do anything specific outside of this. I didn't even create a README originally just to see how it worked, but added one later.
Once the page is setup you just clone it to your computer with the standard
git clone https://github.com/username/username.github.io
and then create an index page. I did mine in the terminal via these two commands :
echo "Hello World" > index.html
Once the page is in your folder via the next 3 commands:
git add --all
git commit -m "Initial commit"
git push -u origin master
For me this didn't quite go as smoothly on my computer side of things... I ended up going I ended up needing to do a few more commands on my computer.
I had to remotely add the origin via
git remote add origin firstname.lastname@example.org:caffiendkitten/caffiendkitten.github.io.git
and that worked enough for me. I was then able to open it up in my VSCode and start coding.