This is a webpage template designed to make simple websites using rmarkdown and github.
To get started on your own webpage follow these instructions:
- Open a terminal and clone my template webpage repository:
git clone https://github.com/nearinj/Template_webpage.git
- Rename it the folder so that its named after your github username
mv Template_webpage USERNAME.github.io
If your github username is JTNearing-broad you would want to rename the folder to JTNearing-broad.github.io
- Next we need to remove the previous git tracking information from the folder we just cloned.
cd USERNAME.github.io
rm -rf .git
- Initialize it as a new repository.
git init
- Next we want commit our files to this new github project and commit them to the staging area and create a new main branch.
git add .
git commit -m "First commit"
git branch -M main
- Now we need to navigate to the github webpage and make a new resposity with the same name as the folder we just made.
- Link your new repository to the folder that we created and push our changes.
git remote add origin https://github.com/USERNAME/USERNAME.github.io.git
git push -u origin main
- Update your new repository so that it builds the website from the ``docs/``` folder.
- Wait a minute and then checkout your new webpage at: USERNAME.github.io